more digging...

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

View File

@ -120,6 +120,7 @@ $(document).ready(function(){
.on('mousemove touchmove', function(evt){
//var t = evt.timeStamp || Date.now();
console.log('moving...')
evt.preventDefault()
if(evt.touches && evt.touches.length > 0){
var pos_x = evt.touches[0].pointX
@ -131,7 +132,8 @@ $(document).ready(function(){
_x = pos_x
}
var x = pos_x
if(scrolling && Math.abs(x-_x) > 6){
console.log(pos_x)
if(scrolling){
var s = getMagazineShift()
shiftMagazineTo(s + (x - _x))
}