]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed diagram mouse wheel zooming for HiDPI monitors with zoom 02/2202/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Sep 2018 21:45:25 +0000 (00:45 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Sep 2018 21:45:25 +0000 (00:45 +0300)
commita45f69c08e4157a565cddce93bbf17aa64da2e2f
tree42767911370cdead5bf0a16d0e768cb10fc08aee
parent7903eb7d1e0e004cfa05a8775fda95e556b5727b
Fixed diagram mouse wheel zooming for HiDPI monitors with zoom

SWTMouseEventAdapter now upscales coordinates which previously were just
passed to G2D as SWT API coordinates, not pixel coordinates.

gitlab #119

Change-Id: Icd3e00d1e515007f8573f7910783762a26916615
bundles/org.simantics.g2d/src/org/simantics/g2d/event/adapter/SWTMouseEventAdapter.java
bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/SWTDPIUtil.java