A clean backport of #1856 . This is a very localized fix for the issue described in https://bugs.openjdk.org/browse/JDK-8364049 which resulted from comparing snapped and non-snapped values. The issue seems to happen only with fractional scale, that is, on Windows at 125%, 150%, 175% etc. scales.
------------- Commit messages: - Backport 4e334cb1ebbb370086d0a58bbe1d9a30d6665066 Changes: https://git.openjdk.org/jfx/pull/1863/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1863&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8364049 Stats: 60 lines in 2 files changed: 51 ins; 3 del; 6 mod Patch: https://git.openjdk.org/jfx/pull/1863.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1863/head:pull/1863 PR: https://git.openjdk.org/jfx/pull/1863