tabindex without focux condition

This commit is contained in:
Andreas Hocevar
2019-11-13 22:51:45 +01:00
parent 8b036ba96c
commit 643a3ad86b
5 changed files with 42 additions and 22 deletions

10
examples/page-scroll.html Normal file
View File

@@ -0,0 +1,10 @@
---
layout: example.html
title: Page Scrolling
shortdesc: Shows a map that does not interrupt page scrolling.
docs: >
To perform wheel/trackpad zoom and drag-pan actions only when the map
has the focus, configure your map div with a `tabindex` attribute.
tags: "trackpad, mousewheel, zoom, scroll, page"
---
<div tabindex="1" id="map" class="map"></div>