mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 11:10:08 +00:00
doing some more polishing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2276c2d3cd
commit
3d130dac6c
@ -113,12 +113,14 @@ $(document).ready(function(){
|
|||||||
// XXX this is a stub, but need to keep the two types of events
|
// XXX this is a stub, but need to keep the two types of events
|
||||||
// seporated as mouse events sometimes interfere with touch events...
|
// seporated as mouse events sometimes interfere with touch events...
|
||||||
if('ontouchmove' in window){
|
if('ontouchmove' in window){
|
||||||
|
// XXX STUB...
|
||||||
|
togglePageDragging('on')
|
||||||
$('.viewer')
|
$('.viewer')
|
||||||
.on('touchstart', function(){
|
.on('touchstart', function(){
|
||||||
//logger.log('[touchstart]')
|
//logger.log('[touchstart]')
|
||||||
//_t = evt.timeStamp || Date.now();
|
//_t = evt.timeStamp || Date.now();
|
||||||
scrolling = true
|
scrolling = true
|
||||||
togglePageDragging('on')
|
//togglePageDragging('on')
|
||||||
_s = getMagazineShift()
|
_s = getMagazineShift()
|
||||||
})
|
})
|
||||||
.on('touchmove', function(evt){
|
.on('touchmove', function(evt){
|
||||||
@ -139,18 +141,20 @@ $(document).ready(function(){
|
|||||||
.on('touchend', function(){
|
.on('touchend', function(){
|
||||||
//logger.log('[touchend]')
|
//logger.log('[touchend]')
|
||||||
scrolling = false
|
scrolling = false
|
||||||
togglePageDragging('off')
|
//togglePageDragging('off')
|
||||||
_x = null
|
_x = null
|
||||||
_s = null
|
_s = null
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
// XXX stub...
|
||||||
|
togglePageDragging('on')
|
||||||
$('.viewer')
|
$('.viewer')
|
||||||
.on('mousedown', function(){
|
.on('mousedown', function(){
|
||||||
//logger.log('[touchstart]')
|
//logger.log('[touchstart]')
|
||||||
//_t = evt.timeStamp || Date.now();
|
//_t = evt.timeStamp || Date.now();
|
||||||
scrolling = true
|
scrolling = true
|
||||||
togglePageDragging('on')
|
//togglePageDragging('on')
|
||||||
_s = getMagazineShift()
|
_s = getMagazineShift()
|
||||||
})
|
})
|
||||||
.on('mousemove', function(evt){
|
.on('mousemove', function(evt){
|
||||||
@ -171,7 +175,7 @@ $(document).ready(function(){
|
|||||||
.on('mouseup', function(){
|
.on('mouseup', function(){
|
||||||
//logger.log('[touchend]')
|
//logger.log('[touchend]')
|
||||||
scrolling = false
|
scrolling = false
|
||||||
togglePageDragging('off')
|
//togglePageDragging('off')
|
||||||
_x = null
|
_x = null
|
||||||
_s = null
|
_s = null
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user