Open masayuki-nakano opened 7 years ago
I mean, "low resolution" delta value might be useful for some application. So, the proposal new attribute name could be roughDelta(X|Y|Z) or something.
I wonder if script libraries already do have something like this implemented on top of the current wheel events.
When I work on reimplementing legacy mouse scroll event handlers to standardized wheel event handles, I thought that if there are WheelDelta.intDelta(X|Y|Z) or something, some web apps may handle wheel events easier.
My proposal is, WheelEvent.intDelta(X|Y|Z) is set to an non-zero integer value when accumulated delta value is over 1 or less -1, sets the corresponding intDelta value to the integer and remove the value from accumulated delta value.
For example, when a device causes scrolling 0.4 lines per event:
when a device causes scrolling 1.5 lines per event:
When user reverse the delta direction, accumulated delta should be recounted from 0:
This may be useful if web apps implements listbox or treeview which scrolls per its item.