]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed diagram mouse wheel zooming for HiDPI monitors with zoom 03/2203/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:46:12 +0000 (21:46 +0000)
commitb2f1da4c219c646ba3fce0498bf757d64c6dca6d
treecaea98ea923ef1d4ababb3be1e2d8e1f79e6b75f
parentf212fa100ac8c0ce464a826794b3d1737b138b25
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)
bundles/org.simantics.g2d/src/org/simantics/g2d/event/adapter/SWTMouseEventAdapter.java
bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/SWTDPIUtil.java