-
Notifications
You must be signed in to change notification settings - Fork 295
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
Minor fixes #15
Closed
Closed
Minor fixes #15
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
82129fe
Fix Typo in index.js
odai-alali 5bcad6e
Scale even when out of bounds
odai-alali 7a5a2f3
Build and add example for bounds
odai-alali 1bc0cd4
adjust ratio on min/maxZoom
odai-alali c0d4549
build
odai-alali b77af2a
Fix Typo & allow single touch propagation
odai-alali 08bbd6b
build
odai-alali c39e1a0
pinch
odai-alali 8ba7f7f
pinch|
odai-alali 74483a4
fix pinch zoom
odai-alali File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines were here for a reason. We can't simply comment them out, as that would break consumers who don't want touch events be propagated, without giving them a way out.
I'd suggest to pass a callback into
options
object, and if it is present, invoke the callback here withe
as an argument. Then it would be up to that callback to invokee.stopPropagation()
Makes sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed to remove them to enable image maps areas touch. The callback solution makes sense for sure. I will try it out.
BTW, is there documentation for the library somewhere else than here? Yesterday I couldn't find documentation about options and bounds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only documentation available is in the README.md file. Please feel free to extend it, and I'll do the same.