mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 11:10:08 +00:00
more digging...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4b3bb3dfc5
commit
9acfbc4b6b
@ -104,7 +104,7 @@ $(document).ready(function(){
|
||||
function(k){console.log(k)}))
|
||||
|
||||
|
||||
logger = Logger()
|
||||
//logger = Logger()
|
||||
var scrolling = false
|
||||
var _x = null
|
||||
var _t = null
|
||||
@ -112,10 +112,10 @@ $(document).ready(function(){
|
||||
|
||||
// XXX this is a stub, but need to keep the two types of events
|
||||
// seporated as mouse events sometimes interfere with touch events...
|
||||
if('touchmove' in window){
|
||||
if('ontouchmove' in window){
|
||||
$('.viewer')
|
||||
.on('touchstart', function(){
|
||||
logger.log('[touchstart]')
|
||||
//logger.log('[touchstart]')
|
||||
//_t = evt.timeStamp || Date.now();
|
||||
scrolling = true
|
||||
togglePageDragging('on')
|
||||
@ -136,7 +136,7 @@ $(document).ready(function(){
|
||||
_x = x
|
||||
})
|
||||
.on('touchend', function(){
|
||||
logger.log('[touchend]')
|
||||
//logger.log('[touchend]')
|
||||
scrolling = false
|
||||
togglePageDragging('off')
|
||||
})
|
||||
@ -144,7 +144,7 @@ $(document).ready(function(){
|
||||
} else {
|
||||
$('.viewer')
|
||||
.on('mousedown', function(){
|
||||
logger.log('[touchstart]')
|
||||
//logger.log('[touchstart]')
|
||||
//_t = evt.timeStamp || Date.now();
|
||||
scrolling = true
|
||||
togglePageDragging('on')
|
||||
@ -165,7 +165,7 @@ $(document).ready(function(){
|
||||
_x = x
|
||||
})
|
||||
.on('mouseup', function(){
|
||||
logger.log('[touchend]')
|
||||
//logger.log('[touchend]')
|
||||
scrolling = false
|
||||
togglePageDragging('off')
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user