mediawiki-extensions-Revisi.../modules
thiemowmde f0742e7ba3 Use existing data-pos attribute instead of pixel calculations
This click handler is assigned to many different elements. Not all
of them can be used as a source for a data-pos="…" attribute. But a
lot can.

Again, this patch alone will not actually fix T352169. But it will
improve the situation a lot, according to my local tests. Many of
the clicks will start to work fine on RTL wikis because the
problematic pixel-based getRevisionPositionFromLeftOffset
calculations are not used any more.

Steps to reproduce: Go to a RTL page with a very long history, e.g.
https://he.wikipedia.org/wiki/Special:Diff/38031767?uselang=he
Click on one of the gray bars in the right half of the slider. This
will not work, i.e. the slider will not move to this position but
to a totally different one. This is the bug described in T352169.

I noticed that a browser zoom other than 100% can cause many more
problems that are unrelated to this patch. Please test with 100%.

Bug: T352169
Change-Id: Ife49557c891736bc94df6087658f76326791f61b
2024-02-09 16:27:05 +00:00
..
.eslintrc.json Migrate JS to ES6 2023-06-23 08:01:31 +02:00
ext.RevisionSlider.Api.js Drop wikitext comment in favor of parsedcomment 2023-08-25 14:42:32 +02:00
ext.RevisionSlider.DiffPage.js Mark private methods with @private tags 2023-10-26 14:05:12 +02:00
ext.RevisionSlider.HelpButtonView.js Migrate JS to ES6 2023-06-23 08:01:31 +02:00
ext.RevisionSlider.HelpDialog.js Make use of jQuery.append() accepting multiple arguments 2023-08-25 14:39:39 +02:00
ext.RevisionSlider.init.js Cleanup minor code duplication/complication in various places 2023-10-26 13:46:16 +02:00
ext.RevisionSlider.lazy.js Don't add keypress handler when not needed 2023-08-28 06:10:06 +00:00
ext.RevisionSlider.lazy.less Make use of Codex LESS tokens where possible 2023-08-30 17:54:59 +02:00
ext.RevisionSlider.less Make .less code a little more compact 2023-10-23 14:31:09 +02:00
ext.RevisionSlider.noscript.css Convert the few instances of IDs to classes 2016-08-10 15:32:12 -07:00
ext.RevisionSlider.Pointer.js Migrate JS to ES6 2023-06-23 08:01:31 +02:00
ext.RevisionSlider.PointerLine.js Remove redundant checks for .offset() !== undefined 2023-11-06 22:14:58 +01:00
ext.RevisionSlider.PointerView.js Merge "Mark private methods with @private tags" 2023-10-26 12:22:38 +00:00
ext.RevisionSlider.Revision.js Merge "Various tiny clean-ups" 2024-01-12 09:48:13 +00:00
ext.RevisionSlider.RevisionList.js Various tiny clean-ups 2023-11-29 12:58:51 +01:00
ext.RevisionSlider.RevisionListView.js Fix rounding error in revisionsPerWindow calculation 2024-02-09 12:19:31 +01:00
ext.RevisionSlider.Settings.js Mark private methods with @private tags 2023-10-26 14:05:12 +02:00
ext.RevisionSlider.Slider.js Fix rounding error in revisionsPerWindow calculation 2024-02-09 12:19:31 +01:00
ext.RevisionSlider.SliderArrowView.js Merge large chunk of code duplication in SliderArrowView 2024-02-01 23:40:51 +00:00
ext.RevisionSlider.SliderView.js Use existing data-pos attribute instead of pixel calculations 2024-02-09 16:27:05 +00:00
ext.RevisionSlider.util.js Drop obsolete special case for Google Chrome before version 60 2024-02-07 17:29:19 +01:00