Skip to content
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

add support to onFocusOnly option for interactions #260

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

rslemos
Copy link

@rslemos rslemos commented Sep 3, 2020

Add support to onFocusOnly option that is available on ol/interaction/MouseWheelZoom and on ol/interaction/DragPan (and ol/interaction.defaults for completeness).

For the site I'm developing right now this is a must, since we have lots of scrollable content on a page with a map. Without onFocusOnly the map traps the mouse wheel, resulting in a bad user experience.

Please note that the tabindex thing in <aol-map> is needed for the focusWithTabindex condition to work inside OpenLayers. I don't expect any breaking change in this PR, given that in using [attr.tabindex] with null will effectively not set tabindex (as it occurs before the PR). Also, tabindex property didn't exist in aol-map altogether (so nobody should be using it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant