We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a365ad commit 28e85baCopy full SHA for 28e85ba
1 file changed
wgpu/src/renderer/widget/image_pane.rs
@@ -25,10 +25,12 @@ impl image_pane::Renderer for Renderer {
25
{
26
if state.is_cursor_clicked() {
27
MouseCursor::Grabbing
28
- } else if is_mouse_over {
+ } else if is_mouse_over
29
+ && (image_bounds.x > bounds.x || image_bounds.y > bounds.y)
30
+ {
31
MouseCursor::Grab
32
} else {
- MouseCursor::OutOfBounds
33
+ MouseCursor::Idle
34
}
35
},
36
)
0 commit comments