reviw 0.17.3 → 0.17.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.cjs +4 -4
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -5897,12 +5897,12 @@ function htmlTemplate(dataRows, cols, projectRoot, relativePath, mode, previewHt
5897
5897
  });
5898
5898
 
5899
5899
  // Trackpad/Mouse wheel handling
5900
- // - ctrlKey true (pinch gesture on trackpad) → zoom
5901
- // - ctrlKey false (two-finger scroll) → pan
5900
+ // - ctrlKey/shiftKey true (pinch gesture on trackpad, or Ctrl/Shift+wheel) → zoom
5901
+ // - ctrlKey/shiftKey false (two-finger scroll) → pan
5902
5902
  fsContent.addEventListener('wheel', (e) => {
5903
5903
  e.preventDefault();
5904
- if (e.ctrlKey) {
5905
- // Pinch zoom on trackpad (or Ctrl+wheel on mouse)
5904
+ if (e.ctrlKey || e.shiftKey) {
5905
+ // Pinch zoom on trackpad (or Ctrl/Shift+wheel on mouse)
5906
5906
  const factor = e.deltaY > 0 ? 0.9 : 1.1;
5907
5907
  zoomAt(factor, e.clientX, e.clientY);
5908
5908
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reviw",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "description": "Lightweight file reviewer with in-browser comments for CSV, TSV, Markdown, and Git diffs.",
5
5
  "type": "module",
6
6
  "bin": {