-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Mouse input device support #4909
Comments
We can add an
(They can be different if the cursor was moved without clicking.) I vote for 1) because PCs work like this as well. (At least my Linux Mint) |
For touch screen with crown, the focused widget could be used for sending event to. |
With crown, can you position the "cursor" above the focused widget so that we can use option 1) ? |
That sounds a bit of hacky. I haven't investigate much on this, please do check if any other options available. |
cc @W-Mai |
Maybe we can add a new hover state when pointer is enabled. Auto scrolling occurs when the pointer is hovering an object. |
That's my idea too. |
@XuNeo There may be a contradiction here. The crown should also support scrolling propagation, but it cannot be propagated after specifying focused obj. |
What do you mean by "rectifying"? |
@kisvegabor It is a typo, it should be "specifying". |
We could still say to try scrolling the focused object, but propagate the scroll if needed. |
what gets scrolled is whatever the mouse is hovering over. If that item is not able to be scrolled then it's parent is what gets scrolled. and if the parent is not able to be scrolled... etc etc all the way down to the screen level. To further assist something like that you would need to add 2 events, one would be mouse_enter and the other is mouse_leave. when the mouse moves hot tests would need to be done to locate the object it is hovering over. if the mouse was not over the |
There's a corner case that a slider is focused and is not scrollable. But the parent of slider is scrollable. Hovering on the slider should simply scroll the parent though. So the logic for low level indev becomes that firstly check if there's focused obj, if so, send the event anyway. |
On our meeting we have concluded to create a new input device for it. Is it required to add to v9.0, or adding it by the end of January is still ok? |
We need some feedback on this issue. Now we mark this as "stale" because there was no activity here for 14 days. Remove the "stale" label or comment else this will be closed in 7 days. |
Not stale |
Continued in #5057 |
Introduce the problem
Currently we have
pointer
andencoder
type of input device. But for platform that uses mouse directly like in simulator, the scroll wheel should not be treated as simple encoder.Ideally the wheel could also scroll the page or change slider value or send event to whatever widget currently focused.
Add a unified solution for mouse use case could benefit lot of user cases.
Examples and cases
Suggested solution
The text was updated successfully, but these errors were encountered: