Tk Source Code

View Ticket
Login
Ticket UUID: 73b44096eaf1dfffe71117a68feb1591af11a6b6
Title: <MouseWheel> binding
Type: Bug Version:
Submitter: nab Created on: 2019-03-28 10:30:47
Subsystem: (unused) Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2019-04-11 19:25:06
Resolution: Invalid Closed By: fvogel
    Closed on: 2019-04-11 19:25:06
Description:
Hi,
maybe this have been resolved yet.... but I'm facing a strange behavior with <MouseWheel> binding.
(on osx with TK compiled as a framework).

I do something like that to scroll a frame (through a canvas yscrollcommand):
bind all <MouseWheel> [list ::tk::MouseWheel %W %D %X %Y]

I use two finger to scroll on the trackpad and despite the fact I'm always scrolling the same way (let's say up,  %D should be positive), %D is sometime negative.
especially if I go fast, but even at a reasonable speed, sometimes, %D is wrong.
hope I'm clear...

++
User Comments: nab added on 2019-04-11 15:16:39:
this one can be closed...
things where too much complicated on my side.