From 05448487083185a2237c8222027f1fff15eb907e Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 5 Apr 2021 23:19:52 +0100 Subject: [PATCH] Fix missing vendor prefix on post scrubber; move styles to Less --- js/src/forum/components/PostStreamScrubber.js | 2 -- less/forum/Scrubber.less | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/src/forum/components/PostStreamScrubber.js b/js/src/forum/components/PostStreamScrubber.js index d45474f05..3963936fa 100644 --- a/js/src/forum/components/PostStreamScrubber.js +++ b/js/src/forum/components/PostStreamScrubber.js @@ -112,7 +112,6 @@ export default class PostStreamScrubber extends Component { // Now we want to make the scrollbar handle draggable. Let's start by // preventing default browser events from messing things up. - .css({ cursor: 'pointer', 'user-select': 'none' }) .bind('dragstart mousedown touchstart', (e) => e.preventDefault()); // When the mouse is pressed on the scrollbar handle, we capture some @@ -124,7 +123,6 @@ export default class PostStreamScrubber extends Component { this.indexStart = 0; this.$('.Scrubber-handle') - .css('cursor', 'move') .bind('mousedown touchstart', this.onmousedown.bind(this)) // Exempt the scrollbar handle from the 'jump to' click event. diff --git a/less/forum/Scrubber.less b/less/forum/Scrubber.less index b0cdf94c7..50cd880f1 100644 --- a/less/forum/Scrubber.less +++ b/less/forum/Scrubber.less @@ -18,6 +18,8 @@ height: 300px; min-height: 50px; // JavaScript sets a max-height position: relative; + cursor: pointer; + .user-select(none); } .Scrubber-before, .Scrubber-after { border-left: 1px solid @control-bg; @@ -42,6 +44,7 @@ background: transparent; width: 100%; padding: 5px 0; + cursor: move; } .Scrubber-bar { height: 100%;