Tk Source Code

Ticket Change Details
Bounty program for improvements to Tcl and certain Tcl packages.

Artifact ID: c27b7339c6da28dd6a58e33ae9aab98cf272a62a460e6bbd34fac888befdfc76
Ticket: 270b0aedd4448fde3b7f646fb10d276267fafad1
pinch to zoom toplevel
User & Date: marc_culler 2019-12-04 20:06:21

  1. Change icomment to:

    I think that the appropriate proposal should not be to make the pinch gesture do any specific thing, but to treat it in the same way that other events like scrollwheel and mouse events are treated. Namely, it should have a name and it should be possible to bind the event to a procedure.

    I don't know how it works. Since you can continuously zoom and unzoom with that gesture, I assume that many events are sent, as when the mouse is moved. I would guess that the event provides some numerical value indicating how much closer or further apart the fingers moved since the previous event. And maybe events are sent for the start and end of the gesture. But this is all guesswork.

    I also don't know which platforms support the gesture nor how they support it if they do. So lots of research and experimentation would be needed.

  2. Change login to "marc_culler"
  3. Change mimetype to "text/plain"
  4. Change username to "Marc Culler"