projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e6d1ead
)
Bugfix. Android ready.
author
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 17 Jul 2014 08:21:48 +0000
(10:21 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 17 Jul 2014 08:21:48 +0000
(10:21 +0200)
skins/photo_film_viewer.js
patch
|
blob
|
history
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;
};