scrollingDeltaY is a double and the Cocoa event pump truncated it to an int per EVENT before accumulating. A trackpad or a Magic Mouse sends a stream of fractions of a line, every one of which truncated to zero, so the wheel was dead; a notched mouse sends three to ten lines at once, so it jumped. The fraction is accumulated now, a precise delta is scaled from points to notches, and the remainder carries to the next frame. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| native | ||
| web | ||