Fix: pageup/down/up/down on chromium. Firefox still works.
This commit is contained in:
parent
3be3ff8528
commit
cbb776835b
3 changed files with 23 additions and 9 deletions
8
done.txt
8
done.txt
|
|
@ -28,3 +28,11 @@ x 2015-02-22 Fix Amiga mode rendering via sixteencolors lib @16colors
|
|||
x 2015-02-22 check below items for neccesity
|
||||
x 2015-02-22 load to array/picture, render from picture @16colors
|
||||
x 2015-02-22 speed up rendering more? @16colors
|
||||
x 2015-03-25 BIN @OTHER
|
||||
x 2015-03-25 IDF @OTHER
|
||||
x 2015-03-25 Tundra @OTHER
|
||||
x 2015-03-25 PCBOARD @OTHER
|
||||
x 2015-03-25 Avatar @OTHER
|
||||
x 2015-03-25 2015-02-22 ADF @OTHER
|
||||
x 2015-03-25 XBIN @OTHER
|
||||
x 2015-03-25 remove the SAUCE lines at bottom, return ANSI object for render @SAUCE
|
||||
|
|
|
|||
16
sahli.coffee
16
sahli.coffee
|
|
@ -210,6 +210,13 @@ class @Sahli
|
|||
@scroll_direction = - @scroll_direction
|
||||
@setscroll()
|
||||
|
||||
# chromium wasn't working with up/down/pageup/pagedown, firefox was. This makes
|
||||
# both work the same way.
|
||||
|
||||
@moveline = (direction) ->
|
||||
curpos = $('body').scrollTop()
|
||||
$('body').scrollTop(curpos + (16*direction))
|
||||
|
||||
@changescrolldirection = (direction) ->
|
||||
@scroll_direction = direction
|
||||
$('body').stop()
|
||||
|
|
@ -297,7 +304,6 @@ class @Sahli
|
|||
canvs.width @origwidth
|
||||
$('body').scrollTop 0
|
||||
|
||||
|
||||
@createpanel = (i,amt) ->
|
||||
dcol = $("<div id='column#{i}' class='panelcolumn'>#{i}</div>")
|
||||
dcol.width amt
|
||||
|
|
@ -344,6 +350,14 @@ class @Sahli
|
|||
@scroll_speed = 4
|
||||
when @keycode '5'
|
||||
@changespeed 5
|
||||
when 40 # down
|
||||
@moveline 1
|
||||
when 38 # up
|
||||
@moveline -1
|
||||
when 34 # pagedown
|
||||
@moveline 40
|
||||
when 33 # pageup
|
||||
@moveline -40
|
||||
when @keycode 'h'
|
||||
$('.help').css {'left':'33%'}
|
||||
$('.help').toggle 'fast'
|
||||
|
|
|
|||
8
todo.txt
8
todo.txt
|
|
@ -1,14 +1,6 @@
|
|||
(B) 2015-02-22 ADF @OTHER
|
||||
(B) @EDITOR add more Amiga fonts.
|
||||
(B) @EDITOR redo filenames to load from list of files in directory (specfied in 'location')
|
||||
(A) remove the SAUCE lines at bottom, return ANSI object for render @SAUCE
|
||||
(A) XBIN @OTHER
|
||||
(C) Amiga ANSI @OTHER
|
||||
(B) Avatar @OTHER
|
||||
(B) BIN @OTHER
|
||||
(B) IDF @OTHER
|
||||
(B) PCBOARD @OTHER
|
||||
(D) THUMBNAILS - for returning to partymeister @PARTYMEISTER
|
||||
(B) Tundra @OTHER
|
||||
(D) implement package import from partymeister @PARTYMEISTER
|
||||
(D) hook for progress @progress @PARTYMEISTER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue