Scroll Event Delta Values

Dirk Lemmermann dlemmermann at gmail.com
Thu Jun 22 13:22:28 UTC 2017


Hi,

I noticed in my application that the delta values of the ScrollEvent seem to be incorrect at the end of the scroll event sequence.
Values should first increase and then decrease: smooth-in / smooth-out style. But when I print out the values I noticed that at the end I receive a few non-linear values:

   9.000091552734375
   8.000030517578125
   7.0001220703125
   6.00006103515625
   8.000030517578125
   10.0
   10.0
   9.000091552734375
   9.000091552734375
   9.000091552734375
   8.000030517578125
   7.0001220703125
   7.0001220703125
   6.00006103515625
   6.00006103515625
   6.00006103515625
   5.0
   5.0
   5.0
   16.00006103515625    <———— here, too big
   13.000030517578125  <———— here, too big
   13.000030517578125  <———— here, too big

Question: is this the intended way? I am running on a Mac.

A video showing the result can be seen here: https://youtu.be/KOEQatiCMns <https://youtu.be/KOEQatiCMns>

The problem with these values is that it results in „stuttering" of the timeline control of my app. 

—Dirk



More information about the openjfx-dev mailing list