mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 03:00:09 +00:00
some odd behavior on touchSwipe click events...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3222454ed5
commit
e57d5c4416
@ -98,7 +98,7 @@ $(document).ready(function(){
|
||||
click: function(evt, elem){
|
||||
if($(elem).hasClass('page')){
|
||||
setCurrentPage(elem)
|
||||
} else if($(elem).hasClass('content')){
|
||||
} else if($(elem).parents('.page').length != 0){
|
||||
setCurrentPage($(elem).parents('.page').first())
|
||||
}
|
||||
return true
|
||||
|
||||
@ -86,18 +86,19 @@ $(document).ready(function(){
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
// XXX for some reason this deos not bubble up the nested elements...
|
||||
// XXX just stopped working....
|
||||
// ...works if we double click but not on a single click...
|
||||
click: function(evt, elem){
|
||||
if($(elem).hasClass('page')){
|
||||
setCurrentPage(elem)
|
||||
} else if($(elem).hasClass('content')){
|
||||
} else if($(elem).parents('.page').length != 0){
|
||||
setCurrentPage($(elem).parents('.page').first())
|
||||
}
|
||||
return true
|
||||
},
|
||||
|
||||
excludedElements: '.noSwipe, a, [contenteditable=true]',
|
||||
excludedElements: $.fn.swipe.defaults.excludedElements + ', [contenteditable=true]',
|
||||
fingers: $.fn.swipe.fingers.ALL
|
||||
//fingers: $.fn.swipe.fingers.THREE
|
||||
})
|
||||
|
||||
@ -508,11 +508,6 @@ function toggleBookmark(n){
|
||||
.attr({
|
||||
title: 'Toggle bookmark (B)'
|
||||
})
|
||||
.swipe({
|
||||
click: function(){
|
||||
toggleBookmark(cur)
|
||||
}
|
||||
})
|
||||
|
||||
$('.viewer').trigger('bookmarkAdded', n)
|
||||
|
||||
@ -1004,6 +999,7 @@ function createCoverPage(template){
|
||||
|
||||
/************************************************ editor: magazine ***/
|
||||
|
||||
|
||||
// XXX setup event handlers...
|
||||
function loadMagazine(mag, position, bookmarks){
|
||||
removeMagazine()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user