You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Image viewer: capture Escape only when the view changed; cover the hover and pan-only cases #52
The viewer currently captures Escape when it is hovered OR its state is not the default. A hovered, untouched viewer still swallows Escape even though there is nothing to reset: for example, a modal that closes on Escape release stays open while the cursor is over an image inside it. Capturing only when the state is not the default would interfere less.
The tests in widget/tests/image_viewer.rs also leave two cases uncovered:
the hover clause (viewer.rs:166-167);
the offset part of is_default (viewer.rs:171), i.e. a pan-only state.
Activity
Issue #52: image Viewer captures Escape only when its view changed (f…