-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
https://github.com/Kitware/trame-vtklocal/blob/master/examples/vtk/actor_picker.py
In this example, I only changed the
view.listeners = (
"wasm_listeners",
{
wasm_interactor_id: {
"LeftButtonPressEvent": {
"clicked_pos": {
"x": (wasm_interactor_id, "EventPosition", 0),
"y": (wasm_interactor_id, "EventPosition", 1),
},
},
},
},
)to
view.listeners = (
"wasm_listeners",
{
wasm_interactor_id: {
"LeftButtonReleaseEvent": {
"clicked_pos": {
"x": (wasm_interactor_id, "EventPosition", 0),
"y": (wasm_interactor_id, "EventPosition", 1),
},
},
},
},
)and found that it did not work.
Because I noticed that triggering immediately upon left-click conflicts with the operation of dragging in the 3D scene, I want the trigger to happen upon left-button release. Additionally, I plan to compare the recorded position at the time of the click. If the movement exceeds a certain distance, it will be considered a drag rather than a click, which can help avoid accidental triggers. However, the left-button release event is not being detected, making it impossible to implement this feature.
Metadata
Metadata
Assignees
Labels
No labels