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

feat: improve multitouch handling (DHIS2-10413) #276

Merged
merged 7 commits into from
Feb 25, 2021
Merged

Conversation

turban
Copy link
Collaborator

@turban turban commented Feb 24, 2021

Partly fixes: https://jira.dhis2.org/browse/DHIS2-10413

The mapbox-gl-multitouch dependency we used has been deprecated by the author (https://www.npmjs.com/package/mapbox-gl-multitouch), so I copied the code into the repo and made some smaller adjustments.

We use multitouch as an alternative to one finger panning on dashboard maps, to avoid a "page scroll trap". We're no longer enabling multitouch by default - it kan be turned on and off with the new toggleMultiTouch(isEnabled) method. This allows us to disable one finger panning for dashboard maps, but enable it in fullscreen mode.

@turban turban merged commit e2b82cc into master Feb 25, 2021
@turban turban deleted the fix/scroll-zoom branch February 25, 2021 09:04
dhis2-bot added a commit that referenced this pull request Feb 25, 2021
# [1.7.0](v1.6.0...v1.7.0) (2021-02-25)

### Features

* improve multitouch handling (DHIS2-10413) ([#276](#276)) ([e2b82cc](e2b82cc))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 1.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants