more digging...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-18 19:07:41 +04:00
parent dfec81f982
commit 8b42b6a165

View File

@ -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))