FEAT: listen to mouse event for native components #5656
Replies: 2 comments 5 replies
-
Can you elaborate more on this as it's not clear to me what issue you're facing? |
Beta Was this translation helpful? Give feedback.
-
I can't reproduce exactly my error. But I can provide some problems which are really basic regarding extending native views. Problem1
Core lines
Problem2Another problem is shown in the same file Core lines
|
Beta Was this translation helpful? Give feedback.
-
My use case
I have a popup opened but cannot be closed when you click on a component because mouse events are stop propagated. I want to manually close it in a click callback.
Benefit
Listen to events on all gjs natives components, not just the custom ones
Right now those events are stopPropagated. it's hard to customize
Alternatives
Mouse event such as
click
doubleclick
scroll
contextmenu
...and more
Parameters needed
component, element
Beta Was this translation helpful? Give feedback.
All reactions