-
Notifications
You must be signed in to change notification settings - Fork 137
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
primitives outside of scissor region are not removed from the input list #255
Comments
My wager (@boydm correct me on this) is that we don't account for stenciling when handling input events--if you look at My first guess as to how to handle this is to pass up the visible component where an input hit happens along with the normal information, maybe using stencil buffer picking or something. |
Yeah. it does not account for stenciling when checking for inputs. |
This is going to require some thought |
And also yes, #253 would be the same issue. |
My inital thought is to mark scissor regions in the input tree in the viewport. Then when searching down the tree, it would be pretty easy to see if the point is in the scissor region or not. If yes, continue searching. If not, abandon this branch of the tree. |
Yeah, in most cases you don't want to account for stenciling. I remember that being a big pain point in Scenic 0.10.0 where any rendered primitive would block input for any primitive underneath it. It made things like scroll containers impossible. |
Primitives with the input style can still be interacted with even if they are outside of a scissor region.
edit: this may have to do with #253
The text was updated successfully, but these errors were encountered: