Replies: 1 comment 1 reply
-
|
We just forward the event as they come from winit, so i believe in this case it is winit which has a difference and the difference may be caused by how the platform itself sends the events. I think you may be able to work around this issue if you check for the distance from the pressed position before claiming it is a drag. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a TouchArea for handling events on a chart with the Rust plotters library. I want to differentiate between click and click and drag, so I did the following:
On Linux and Windows this works perfectly fine, I can click and click-and-drag (and click-drag with modifiers like CTRL).
On Mac, the PointerEventKind.move comes immediately after "touching", no matter how brief I try to click without movement, and then afterwards the clicked() callback is called, and since it checks for dragging with the is_drag flag, it does never call the p_plot_clicked function.
Am I doing something wrong?
This is slint 1.13.1 with Rust 1.90.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions