All Mangas Reader

Discuss the extension, report bugs and request new features.
It is currently Mon Dec 18, 2017 8:11 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: 2 propositions
PostPosted: Sat Jul 13, 2013 8:23 pm 
Offline

Joined: Sat Sep 10, 2011 11:23 pm
Posts: 16
I was wondering if it could be possible make a horizontal reading rather than vertical, in which we could ask to either read original style (right to left) or western style (left to right), it would work the exact same way (rolling the mouse wheel or using the arrow keys).

I would make reading a tiny bit more like reading a book, just for the experience :)

it would be particularly useful for wide screens (22" and above)

---

secondly, could you allow us to change the attributed keys, I have a 7 button mouse, with 2 under my thumb, which I would love to be able to use instead of B and N ... so I could read my manga without having to constantly press my keyboard


Top
 Profile  
 
 Post subject: Re: 2 propositions
PostPosted: Tue Jul 16, 2013 8:43 pm 
Offline
AMR Hero

Joined: Fri Apr 27, 2012 5:10 pm
Posts: 586
Location: A Town far from you
Wait, 1) you mean like this? Image

About the second one... is kinda tough, since JavaScript is not that simple with mouse events. But you are welcome to look into the source code, lines 1386 onwards are pretty interesting.

_________________
Know about me here


Top
 Profile  
 
 Post subject: Re: 2 propositions
PostPosted: Wed Jul 17, 2013 5:51 pm 
Offline

Joined: Sat Sep 10, 2011 11:23 pm
Posts: 16
/1

not exactly, let me show you what was in my mind

Image

or

Image

scrolling "down" would make the page move left or right, depending on which one would be asked

/2 meh I'll give it a shot but me and my computer makes 11

couldn't we just do that :

if (e.which == 66) { //b
if ($("#pChapBtn0").size()>0) {
window.location.href = $("#pChapBtn0").attr("href");
}
}
if (e.which == 78) { //n
if ($("#nChapBtn0").size()>0) {
window.location.href = $("#nChapBtn0").attr("href");
}
}
and change it to that (or adding) ==>
if (e.which == 66) { //mouse button 7
if ($("#pChapBtn0").size()>0) {
window.location.href = $("#pChapBtn0").attr("href");
}
}
if (e.which == 78) { //mouse button 6
if ($("#nChapBtn0").size()>0) {
window.location.href = $("#nChapBtn0").attr("href");
}
}


if something like that doesn't work, do you know if we can redefine the mouse to make the computer think we are pressing the correct keys?


Top
 Profile  
 
 Post subject: Re: 2 propositions
PostPosted: Sat Jul 20, 2013 11:52 am 
Offline
AMR Hero

Joined: Fri Apr 27, 2012 5:10 pm
Posts: 586
Location: A Town far from you
2. The thing is that not everybody would like it, or would use it... or even understand the meaning. I don't know what signal does mouse.click sends (heck I don't have one of those...) but what you are probably looking for is
Code:
if (event.which == null)
       /* IE case */
       button= (event.button < 2) ? "LEFT" :
                 ((event.button == 4) ? "MIDDLE" : "RIGHT");
    else
       /* All others */
       button= (event.which < 2) ? "LEFT" :
                 ((event.which == 2) ? "MIDDLE" : "RIGHT");


You must add some conditional to catch the other codes. Check http://unixpapa.com/js/mouse.html for more info.

1. About this... you should open a ticket in GitHub, it doesn't seems like a ton of work, but some might have their reserves, since we have the view like book (I think is called) mode...

_________________
Know about me here


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group