@AntonKhorev commented on this pull request.
> + $(document).on("numbered_pagination:enable", function () {
+ shadowEffect = new ShadowEffect();
+ $(document).trigger("numbered_pagination:center");
+ });
+
+ $(document).on("numbered_pagination:disable", function () {
+ shadowEffect?.disable();
+ shadowEffect = null;
+ });
+
+ $(document).on("numbered_pagination:center", function () {
+ const [scrollableList] = $("#versions-navigation-list-middle");
+
+ if (!scrollableList) return;
+
+ const [activeStartItem] = $("#versions-navigation-list-start
#versions-navigation-active-page-item");
And I would go with what is in this pull request because it's an intermediate
step consisting mostly of moving code around with minimal changes.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6304#discussion_r2264731005
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6304/review/3102983...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev