mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-23 20:11:46 +00:00
fixed click several events...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5486ebbadf
commit
9ab468a906
2
TODO.otl
2
TODO.otl
@ -6,7 +6,7 @@
|
||||
[_] BUG: no drag threshold on excludedElements (TouchSwipe)
|
||||
| stalled...
|
||||
[_] 78% general todo
|
||||
[_] add templates...
|
||||
[_] add in-page live templates...
|
||||
| elements that will get generated content, like page numbers etc.
|
||||
[_] BUG: initial load on android does not center on the correct page...
|
||||
[_] magazine loader and data format...
|
||||
|
||||
16
magazine.js
16
magazine.js
@ -424,8 +424,10 @@ function setupBookmarkTouchZones(){
|
||||
.attr({
|
||||
title: 'Toggle bookmark (B)'
|
||||
})
|
||||
.click(function(){
|
||||
.swipe({
|
||||
click: function(){
|
||||
toggleBookmark($(e))
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
@ -472,8 +474,10 @@ function toggleBookmark(n){
|
||||
.attr({
|
||||
title: 'Toggle bookmark (B)'
|
||||
})
|
||||
.click(function(){
|
||||
.swipe({
|
||||
click: function(){
|
||||
toggleBookmark(cur)
|
||||
}
|
||||
})
|
||||
|
||||
$('.viewer').trigger('bookmarkAdded', n)
|
||||
@ -526,8 +530,10 @@ function makeArticleIndicator(i, article, width){
|
||||
width: width,
|
||||
left: width*n
|
||||
})
|
||||
.click(function(){
|
||||
.swipe({
|
||||
click: function(){
|
||||
setCurrentPage(n)
|
||||
}
|
||||
})
|
||||
return article
|
||||
}
|
||||
@ -628,8 +634,10 @@ function makeBookmarkIndicator(n){
|
||||
.attr({
|
||||
page: n
|
||||
})
|
||||
.click(function(){
|
||||
.swipe({
|
||||
click: function(){
|
||||
setCurrentPage(n)
|
||||
}
|
||||
})
|
||||
|
||||
return res
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user