minor edits and todo update...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-01-29 15:44:27 +04:00
parent 50aac2be1f
commit d697e9a8f2
2 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,7 @@
| touchdown point. | touchdown point.
[_] BUG: no drag threshold on excludedElements (TouchSwipe) [_] BUG: no drag threshold on excludedElements (TouchSwipe)
| stalled... | stalled...
[_] 81% general todo [_] 82% general todo
[_] magazine loader and data format... [_] magazine loader and data format...
| this is simple, just use a restyled magazine viewer... | this is simple, just use a restyled magazine viewer...
[_] 0% populate an example issue [_] 0% populate an example issue
@ -19,6 +19,7 @@
| e.g. setting "shown"/"hidden" classes in HTML and adding | e.g. setting "shown"/"hidden" classes in HTML and adding
| something like a page reset that will restore the default state, | something like a page reset that will restore the default state,
| rather than the current "hideLayers" | rather than the current "hideLayers"
[X] SVG icons and logo...
[X] 100% bookmarks [X] 100% bookmarks
[X] add next/prev bookmark actions [X] add next/prev bookmark actions
[X] #bookmark anchor [X] #bookmark anchor

View File

@ -41,7 +41,8 @@ $(document).ready(function(){
$('.viewer') $('.viewer')
.swipe({ .swipe({
swipeStatus: swipeHandler, swipeStatus: swipeHandler,
// XXX change this to pinch...
// XXX these get called instead of pinches...
swipeUp: function(event, direction, distance, duration, fingerCount){ swipeUp: function(event, direction, distance, duration, fingerCount){
if(fingerCount == 2){ if(fingerCount == 2){
toggleBookmark() toggleBookmark()
@ -49,7 +50,7 @@ $(document).ready(function(){
togglePageView() togglePageView()
} }
}, },
// XXX change this to pinch... // XXX these get called instead of pinches...
swipeDown: function(event, direction, distance, duration, fingerCount){ swipeDown: function(event, direction, distance, duration, fingerCount){
if(fingerCount == 2){ if(fingerCount == 2){
toggleBookmark() toggleBookmark()
@ -58,6 +59,8 @@ $(document).ready(function(){
} }
}, },
// XXX for some reasons these lose the competition with swipes...
pinchIn: function(event, direction, distance, duration, fingerCount, pinchZoom) { pinchIn: function(event, direction, distance, duration, fingerCount, pinchZoom) {
if(pinchZoom < distance){ if(pinchZoom < distance){
return return
@ -66,6 +69,7 @@ $(document).ready(function(){
togglePageView('on') togglePageView('on')
} }
}, },
// XXX for some reasons these lose the competition with swipes...
pinchOut: function(event, direction, distance, duration, fingerCount, pinchZoom) { pinchOut: function(event, direction, distance, duration, fingerCount, pinchZoom) {
if(pinchZoom < distance){ if(pinchZoom < distance){
return return