-
Notifications
You must be signed in to change notification settings - Fork 72
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
Enable to touch in Android native browser and Chrome #66
base: master
Are you sure you want to change the base?
Conversation
Enable to touch in Android native browser and Chrome Fix flashing display when touches are started in Android native browser
// mark these touches so they aren't used as taps/holds | ||
l0.wasPinch = true; | ||
l1.wasPinch = true; | ||
|
||
// scale about the center of these touches | ||
var center = MM.Point.interpolate(p0, p1, 0.5); | ||
var center = MM.Point.interpolate(p0, p1, 0.5); | ||
var scale = Math.sqrt(Math.pow(p0.x - p1.x, 2) + Math.pow(p0.y - p1.y, 2)); |
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.
Can this use MM.Point.dist instead? https://github.com/modestmaps/modestmaps-js/blob/master/src/point.js#L18
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.
Sure.
Sorry I didn't know clearly about that function, so will check it and change to use it.
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.
Sorry, I add all comments not by our group account but my own account.
Conflicts: modestmaps.js modestmaps.min.js src/touch.js src/utils.js
I committed new source. |
Still not really supporting the addition of insertCss etc for removing touchcallouts. MM should not mess with the stylesheet API or add rules like that. |
Enable to touch in Android native browser and Chrome.
And fix flashing display when touches are started in Android native browser.