When I try to select a word of text in the top 5% of the page in any English Wikipedia article (Example page) in Chrome, the page automatically starts scrolling up, even if the mouse pointer is far from the top edge of the page. How can I prevent this unwanted scrolling with user CSS/JS?
Same behavior in Firefox and Safari. This doesn’t happen in other wikipedias, like German.
2
Answers
This is could have been a comment, but there is too much to say so it’s an incomplete answer.
In my terms, this is either a 1) ‘passive’ effect, or an 2) ‘active’/purposeful javascript-driven effect.
‘passive’ effect (byproduct of internal code shared between Firefox/Safari reacting to something unique to Wikipedia like hidden text or some CSS relative positioning thing), or
an ‘active’/purposeful javascript-driven effect. To see if this is the case, do the following:
Performance
Tab (maybe a hidden tab, if so click on >>)(Stop)
button in the profiling popup in the middle of the debugging toolsCall Tree
index.js:line#
on the right column of the function invocations; this will swap tabs to code tab{}
(bottom-left) to unminify. You may need to repeat last step to see where it sent you, if you haven’t previous unminified the code. Make sure you have enough expanded room to see where the code flashes when the tab changed.Was easily annotated for Reading audiences to understand hoping that my input is of good quality and would be rewarded with a good score in order for me to obtain the necessary points for the golden badge award