mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
add Mac OS X horizontal scroll with mouse wheel (touch pad two fingers scrolling)
This commit is contained in:
@@ -1428,7 +1428,16 @@ public class FieldPanel extends JPanel
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
hoverHandler.stopHover();
|
hoverHandler.stopHover();
|
||||||
scrollView(scrollAmount);
|
|
||||||
|
if (e.isShiftDown()) {
|
||||||
|
// horizontal scroll (only move viewport)
|
||||||
|
if (viewport != null) {
|
||||||
|
Point pos = viewport.getViewPosition();
|
||||||
|
viewport.setViewPosition(new Point(Math.max(0, pos.x + scrollAmount), pos.y));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
scrollView(scrollAmount);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
e.consume();
|
e.consume();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user