MouseWheel capture only stays if element is full screen
Posted: 19 Jul 2023, 14:08
Hey!
I have a hierachy very roughly speaking like this:
Within this hierachy, I have my MapLikeElement, which is some UI object with a behavior on that allows me functionality similar to a map: move and zoom.
Moving using mouse clicks, and zooming using mouse wheel. As it is right now, I have the issue that if the MapLikeElement covers the entire screen, I can move and zoom as I expect, however, if the MapLikeElement only partially covers the screen, then I am able to move as I expect, but I can't zoom. The element is not reacting to MouseWheel events at that point. Except for the special case that I can zoom while moving, which I presume happens because the element gets MouseCapture, as I capture the mouse during my movement.
Is there a way I can receive the MouseWheel events similar to the MouseDown events, that works both with and without mouse capture?`
Thanks in advance!
I have a hierachy very roughly speaking like this:
Code: Select all
<Grid>
<Grid></Grid>
...
<Grid>
<MapLikeElement />
</Grid>
</Grid>
Moving using mouse clicks, and zooming using mouse wheel. As it is right now, I have the issue that if the MapLikeElement covers the entire screen, I can move and zoom as I expect, however, if the MapLikeElement only partially covers the screen, then I am able to move as I expect, but I can't zoom. The element is not reacting to MouseWheel events at that point. Except for the special case that I can zoom while moving, which I presume happens because the element gets MouseCapture, as I capture the mouse during my movement.
Is there a way I can receive the MouseWheel events similar to the MouseDown events, that works both with and without mouse capture?`
Thanks in advance!