mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 03:00:09 +00:00
more digging...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
dd20bcdd27
commit
2243a78b4f
@ -121,15 +121,13 @@ $(document).ready(function(){
|
||||
.on('mousemove touchmove', function(evt){
|
||||
//var t = evt.timeStamp || Date.now();
|
||||
//evt.preventDefault()
|
||||
console.log('move...')
|
||||
if(_x == null){
|
||||
_x = evt.clientX
|
||||
}
|
||||
var x = evt.clientX
|
||||
if(scrolling && Math.abs(x-_x) > 6){
|
||||
logger.log('[drag]')
|
||||
var s = getMagazineShift()
|
||||
logger.log('>>> '+s+'')
|
||||
console.log('>>> '+s+'')
|
||||
shiftMagazineTo(s + (x - _x))
|
||||
}
|
||||
_x = x
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user