Welcome Guest ( Log In | Register )

2 Pages V < 1 2  
Reply to this topicStart new topic
> Multi-page Viewer: smooth scrolling disabled, can't zoom in/out?

 
post Nov 24 2023, 10:01
Post #21
uareader



Critter
*********
Group: Catgirl Camarilla
Posts: 5,588
Joined: 1-September 14
Level 500 (Ponyslayer)


Thanks
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 13 2024, 04:47
Post #22
Rin Tohsaka



Newcomer
*
Group: Members
Posts: 24
Joined: 7-January 12


I don't know if it's my choice of browser (Pale Moon), my OS (Linux Mint 20.3 Xfce), or a combination of both or something different altogether, but I can't help but notice that your script and especially the modified version by LoXo results in every click of a scroll wheel scrolling less distance than it normally would compared to basically any other webpage (e.g. MPV without your script, normal non-MPV gallery mode, the search index, this forum, etc).

With your script, it seems to require 3 clicks of a scroll wheel when normally I'd only need 2.

But with LoXo's modification, even though it correctly only requires 2 scroll clicks when testing with the exact same image, it seems to not "stack" scroll clicks in that, if you quickly scroll the wheel like 8 clicks, it's treated as only like 2 clicks—basically it seems to require each individual scrolling "step" of animation to completely finish and will ignore any additional scroll clicks during this period.

Also, a possible mistake with LoXo's modification: It disables the Home and End keyboard keys (I do like its arrow key shortcuts however).

Lastly, I don't suppose it's within the scope of this script to possibly try fixing the issue where you can't have your mouse cursor on the farthest right edge of a maximized browser window (or I suppose a window pinned to the right half of your screen) as there seems to be around a 25% cursor's width of "dead space" between the farthest right edge and before scrolling actually functions.

This post has been edited by Rin Tohsaka: Apr 13 2024, 04:58
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 13 2024, 11:00
Post #23
BlueWaterSplash



Swimsuit Girl
********
Group: Members
Posts: 3,289
Joined: 15-March 11
Level 405 (Godslayer)


holy moly what happened to your boobs Rin Tohsaka!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 13 2024, 13:34
Post #24
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 490
Joined: 15-April 14
Level 448 (Dovahkiin)


QUOTE(Rin Tohsaka @ Apr 13 2024, 04:47) *

I don't know if it's my choice of browser (Pale Moon), my OS (Linux Mint 20.3 Xfce), or a combination of both or something different altogether, but I can't help but notice that your script and especially the modified version by LoXo results in every click of a scroll wheel scrolling less distance than it normally would compared to basically any other webpage (e.g. MPV without your script, normal non-MPV gallery mode, the search index, this forum, etc).

With your script, it seems to require 3 clicks of a scroll wheel when normally I'd only need 2.

But with LoXo's modification, even though it correctly only requires 2 scroll clicks when testing with the exact same image, it seems to not "stack" scroll clicks in that, if you quickly scroll the wheel like 8 clicks, it's treated as only like 2 clicks—basically it seems to require each individual scrolling "step" of animation to completely finish and will ignore any additional scroll clicks during this period.

Also, a possible mistake with LoXo's modification: It disables the Home and End keyboard keys (I do like its arrow key shortcuts however).


The one that I posted just removes the custom scrolling feature in mpv and restores the default scrolling.
With some imagination, I can see how it can cause scrolling to be slower in older machines/linux with its own weird implementation of everything. Try the implementation by x8720 and see if it works; if it doesn't then idk
The last one posted in the thread reimplements custom scrolling after it's being removed, defeating the original point so I don't quite get it

QUOTE(Rin Tohsaka @ Apr 13 2024, 04:47) *

Lastly, I don't suppose it's within the scope of this script to possibly try fixing the issue where you can't have your mouse cursor on the farthest right edge of a maximized browser window (or I suppose a window pinned to the right half of your screen) as there seems to be around a 25% cursor's width of "dead space" between the farthest right edge and before scrolling actually functions.

This is caused by #pane_images being off by 5px from the right edge
You can fix this with custom stylesheet by moving it slightly to the right, and then recenter the image:

CODE

#pane_images { margin-left: 5px; }
#pane_images_inner { margin-left: -5px; }
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 20 2025, 13:59
Post #25
frx178



Newcomer
*
Group: Members
Posts: 44
Joined: 9-July 13
Level 143 (Lord)


QUOTE(FabulousCupcake @ Nov 21 2023, 22:21) *

It did break for me as well a couple weeks ago (if I recall specifically on galleries with varying image sizes, those that exceed the screen width?)

I didn't remember that I took it from this thread
Here's the modified version I have that seems to fix it:

CODE

body { padding:0; }
#pane_outer, #pane_images, .mimg {height:100vh !important;}
#pane_images_inner {font-size: 0;}

.mi0,
.mimg {    
    height:100vh !important;
    min-width:1px !important;
    max-width:100vw !important;
    width:auto !important;
    display: inline-block;
    border:0 !important;
    border-bottom:4px solid transparent !important;
    background-clip: padding-box !important;
    margin:0 !important;
    padding:0 0 24px 0 !important;
}
.mi1 { top:4px; }

a[name^=page] { display: block; }
a[name=page1] { margin:0;}

img[id^=imgsrc_] {    
    max-width: calc(100vw - 225px) !important;
    /* max-width: 100vw !important; */ /* uncomment for no thumbnail pane width fitting */
    width:auto !important; height:100vh !important;
    object-fit: contain;
}



[gist.github.com] https://gist.github.com/RnJ4/ae65d7193d2431...6e15a27fc9c8e51

Here is a userscript version if you do not want to install another extension just for one site. It also keeps current page when resizing window. Please note that GM_addStyle does not work on all userscript managers, confirmed working on Tampermonkey.

This post has been edited by frx178: Jan 20 2025, 14:02
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


2 Pages V < 1 2
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 5th February 2025 - 10:48