]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed diagram mouse wheel zooming for HiDPI monitors with zoom
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Sep 2018 21:45:25 +0000 (00:45 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 20 Sep 2018 08:18:44 +0000 (11:18 +0300)
commit7e2576f82cbd14ee0ef24139801bd59f63bb4514
tree76613038bd2944fc27d7938bee34adf7ab07c5dc
parentfba8ef783dd287c03a23f0f6a6a83d4f9932a165
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
(cherry picked from commit a45f69c08e4157a565cddce93bbf17aa64da2e2f)
(cherry picked from commit b2f1da4c219c646ba3fce0498bf757d64c6dca6d)
bundles/org.simantics.g2d/src/org/simantics/g2d/event/adapter/SWTMouseEventAdapter.java
bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/SWTDPIUtil.java