-
Notifications
You must be signed in to change notification settings - Fork 1.4k
GridSplitter does not capture input #2719
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
Comments
I'm not sure how this is a bug. If I depress the mouse on a button and move the mouse off the button the controls will receive mouse events as well |
I think it's a bug: while dragging the splitter, the mouse should ideally stay on the splitter (the splitter moves with the mouse), but due to lags the splitter is usually a little behind. But in that case I don't want mouse events to happen on other controls. If you depress the mouse on a button and then move the mouse off the button, but you expect the button to move (you're dragging the button), then you wouldn't expect other controls to receive mouse events, do you? For example: if you drag a scrollbar bar and you move slightly off the bar into the main window while you're dragging it, the main window won't receive mouse events either - because at that time you're dragging the scrollbar bar. My problem is this: While dragging the splitter, the resized panels receive mouse events, namely pointer-move events. One of the resizing panels then interprets these events: uses moves mouse while having the left mouse button pressed. And since it's an ink panel it draws garbage with the currently active pen-style and color. And it's garbage because the user was dragging the splitter, not drawing. |
This issue seems inactive. Do you need help to complete this issue? |
This issue seems inactive. Do you need help to complete this issue? |
This issue seems inactive. It will automatically be closed in 14 days if there is no activity. |
Issue is inactive. It was automatically closed. |
Uh oh!
There was an error while loading. Please reload this page.
I'm submitting a...
Current behavior
When moving a GridSplitter, the mouse pointer often moves outside the GridSplitter-Area, which is expected. But when that happens, the controls beside the GridSplitter still get pointer events.
Expected behavior
I would expect other controls to not receive pointer events at all during dragging a GridSplitter.
Minimal reproduction of the problem with instructions
Minimal Project: Create new "Windows Template Studio" c# project in VS, project type "Blank", leave the rest as default. Then edit the MainPage.xaml:
Views.zip
and in the code-behind (MainPage.xaml.cs):
Run the project, then move the GridSplitter. You'll get lots of debug messages printed while dragging the splitter.
Environment
The text was updated successfully, but these errors were encountered: