Skip to content

Commit

Permalink
Fix missing vendor prefix on post scrubber; move styles to Less
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Apr 5, 2021
1 parent 0a171ab commit 0544848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions js/src/forum/components/PostStreamScrubber.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions less/forum/Scrubber.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -42,6 +44,7 @@
background: transparent;
width: 100%;
padding: 5px 0;
cursor: move;
}
.Scrubber-bar {
height: 100%;
Expand Down

0 comments on commit 0544848

Please sign in to comment.