mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-23 12:01:48 +00:00
more digging...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
324356ae7b
commit
dfec81f982
@ -120,6 +120,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
.on('mousemove touchmove', function(evt){
|
.on('mousemove touchmove', function(evt){
|
||||||
//var t = evt.timeStamp || Date.now();
|
//var t = evt.timeStamp || Date.now();
|
||||||
|
console.log('moving...')
|
||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
if(evt.touches && evt.touches.length > 0){
|
if(evt.touches && evt.touches.length > 0){
|
||||||
var pos_x = evt.touches[0].pointX
|
var pos_x = evt.touches[0].pointX
|
||||||
@ -131,7 +132,8 @@ $(document).ready(function(){
|
|||||||
_x = pos_x
|
_x = pos_x
|
||||||
}
|
}
|
||||||
var x = pos_x
|
var x = pos_x
|
||||||
if(scrolling && Math.abs(x-_x) > 6){
|
console.log(pos_x)
|
||||||
|
if(scrolling){
|
||||||
var s = getMagazineShift()
|
var s = getMagazineShift()
|
||||||
shiftMagazineTo(s + (x - _x))
|
shiftMagazineTo(s + (x - _x))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user