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)
|
[_] BUG: no drag threshold on excludedElements (TouchSwipe)
|
||||||
| stalled...
|
| stalled...
|
||||||
[_] 78% general todo
|
[_] 78% general todo
|
||||||
[_] add templates...
|
[_] add in-page live templates...
|
||||||
| elements that will get generated content, like page numbers etc.
|
| elements that will get generated content, like page numbers etc.
|
||||||
[_] BUG: initial load on android does not center on the correct page...
|
[_] BUG: initial load on android does not center on the correct page...
|
||||||
[_] magazine loader and data format...
|
[_] magazine loader and data format...
|
||||||
|
|||||||
24
magazine.js
24
magazine.js
@ -424,8 +424,10 @@ function setupBookmarkTouchZones(){
|
|||||||
.attr({
|
.attr({
|
||||||
title: 'Toggle bookmark (B)'
|
title: 'Toggle bookmark (B)'
|
||||||
})
|
})
|
||||||
.click(function(){
|
.swipe({
|
||||||
toggleBookmark($(e))
|
click: function(){
|
||||||
|
toggleBookmark($(e))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -472,8 +474,10 @@ function toggleBookmark(n){
|
|||||||
.attr({
|
.attr({
|
||||||
title: 'Toggle bookmark (B)'
|
title: 'Toggle bookmark (B)'
|
||||||
})
|
})
|
||||||
.click(function(){
|
.swipe({
|
||||||
toggleBookmark(cur)
|
click: function(){
|
||||||
|
toggleBookmark(cur)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$('.viewer').trigger('bookmarkAdded', n)
|
$('.viewer').trigger('bookmarkAdded', n)
|
||||||
@ -526,8 +530,10 @@ function makeArticleIndicator(i, article, width){
|
|||||||
width: width,
|
width: width,
|
||||||
left: width*n
|
left: width*n
|
||||||
})
|
})
|
||||||
.click(function(){
|
.swipe({
|
||||||
setCurrentPage(n)
|
click: function(){
|
||||||
|
setCurrentPage(n)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
return article
|
return article
|
||||||
}
|
}
|
||||||
@ -628,8 +634,10 @@ function makeBookmarkIndicator(n){
|
|||||||
.attr({
|
.attr({
|
||||||
page: n
|
page: n
|
||||||
})
|
})
|
||||||
.click(function(){
|
.swipe({
|
||||||
setCurrentPage(n)
|
click: function(){
|
||||||
|
setCurrentPage(n)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user