mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-31 20:10:13 +00:00
more digging...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
dfec81f982
commit
8b42b6a165
@ -120,9 +120,9 @@ $(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 != null && evt.touches.length > 0){
|
||||||
|
console.log('touching!!!')
|
||||||
var pos_x = evt.touches[0].pointX
|
var pos_x = evt.touches[0].pointX
|
||||||
} else {
|
} else {
|
||||||
var pos_x = evt.clientX
|
var pos_x = evt.clientX
|
||||||
@ -132,7 +132,7 @@ $(document).ready(function(){
|
|||||||
_x = pos_x
|
_x = pos_x
|
||||||
}
|
}
|
||||||
var x = pos_x
|
var x = pos_x
|
||||||
console.log(pos_x)
|
//console.log(pos_x)
|
||||||
if(scrolling){
|
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