samuelet / indexmenu

A dokuwiki plugin to show a customizable and sortable index for a namespace.
http://dokuwiki.org/plugin:indexmenu
GNU General Public License v2.0
47 stars 43 forks source link

Very hard to scroll back (left) #180

Closed GJRobert closed 3 years ago

GJRobert commented 7 years ago

Hi there,

I still like the scroll feature, but ever since I started to use this plugin (2016), the left "Click to scroll back" arrow buttons are very hard to click... they hardly respond to my clicks (maybe 1 out of 10 clicks), and since the menu only scrolls back 1 px per click... The menu becomes very slow to scroll left.

I'm encountering this on a MacBook, on both Firefox/Pale Moon and Vivaldi/Chrome browsers. If you too are encountering this problem please kindly speak up.

Left arrow buttons hardly respond

I have tried to tweak in /scripts/indexmenu.js, line 178:

        str += '<div id="left_' + this.obj + '" class="indexmenu_larrow" style="display:none;" title="Click to scroll back" onmousedown="javascript:' + this.obj + '.scroll(\'r\',1);" onmouseup="javascript:' + this.obj + '.stopscroll();"></div>';

change .scroll(\'r\',1); to .scroll(\'r\',10); or something, but it does not help yet.

GJRobert commented 7 years ago

I found today that this issue happens on macOS (every browser), not on Windows. Perhaps that's why there not so many people having this issue.

But on macOS this does cause a problem...

Klap-in commented 7 years ago

Looking at benefit, complexity and maintainability it is too much effort for me (as one of the maintainers of this plugin) to improve this code. Personally I would even remove this feature to reduce the complexity of this plugin. However I understand that there are peoples that would prefer this kind of features.

So maybe there are other people using this plugin who have nice ideas to improve this situation?

GJRobert commented 7 years ago

Hi Klap-in,

Thank you so much for replying. I know very little about coding, but I'm willing to help searching for solutions. Could you or anyone provide the related methods or functions in the code to look into, so that I might find why the function does not work on macOS? May I just look in indexmenu.js, or should I look in other script files too?

tormec commented 7 years ago

Personally I would even remove this feature to reduce the complexity of this plugin.

... or it could become an option so that it can be disabled if it doesn't work.

Klap-in commented 7 years ago

You can disable this scrolling by using 'noscroll' option. Eventually you can set it in the configuration manager as default for all indexmenu's. https://www.dokuwiki.org/plugin:indexmenu#syntax

Klap-in commented 3 years ago

As part of this #230 the scroll feature will be removed.