aseprite / laf

A C++ library to create desktop applications
https://aseprite.github.io/laf/
MIT License
274 stars 58 forks source link

Fix selecting a frame on the timeline (with left click), and immediately right clicking it, will be taken as double click (fix #3713) #58

Closed Gasparoken closed 1 year ago

Gasparoken commented 1 year ago

fix aseprite/aseprite#3713

dacap commented 1 year ago

We should be able to detect a double-click with any mouse button, it looks like this change make it possible only to detect left mouse button double clicks.

Gasparoken commented 1 year ago

Ok, I understood. So maybe we need the current and previous click to evaluate a real double click action.

Gasparoken commented 1 year ago

Ready for review.

dacap commented 1 year ago

Merged with: https://github.com/aseprite/laf/commit/cf1eec48af8ae0a9fb689e44cda2d6a125ce58d1 and https://github.com/aseprite/aseprite/commit/733f7ec2c28b2bb57999cc15599b39563d2decf8