projects
/
Portfolio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix. Android ready.
[Portfolio.git]
/
skins
/
photo_film_viewer.js
diff --git
a/skins/photo_film_viewer.js
b/skins/photo_film_viewer.js
index
7561e24
..
1ad17ce
100644
(file)
--- a/
skins/photo_film_viewer.js
+++ b/
skins/photo_film_viewer.js
@@
-613,17
+613,20
@@
else if (browser.isIE6up) {
FilmSlider.prototype.touchStartHandler = function(evt) {
this.filmStartX = parseInt(this.film.style.left, 10);
FilmSlider.prototype.touchStartHandler = function(evt) {
this.filmStartX = parseInt(this.film.style.left, 10);
- this.touchStartX = evt.
page
X;
+ this.touchStartX = evt.
changedTouches[0].screen
X;
};
FilmSlider.prototype.touchMoveHandler = function(evt) {
disableDefault(evt);
};
FilmSlider.prototype.touchMoveHandler = function(evt) {
disableDefault(evt);
- var delta = this.touchStartX - evt.
page
X;
+ var delta = this.touchStartX - evt.
changedTouches[0].screen
X;
var posX = this.filmStartX - delta;
this.setFilmPosition(posX);
};
FilmSlider.prototype.touchEndHandler = function(evt) {
var posX = this.filmStartX - delta;
this.setFilmPosition(posX);
};
FilmSlider.prototype.touchEndHandler = function(evt) {
+ if (evt.changedTouches[0].screenX !== this.touchStartX) {
+ disableDefault(evt);
+ }
this.touchStartX = undefined;
};
this.touchStartX = undefined;
};