Fix missing vendor prefix on post scrubber; move styles to Less

This commit is contained in:
David Wheatley 2021-04-05 23:19:52 +01:00
parent 0fe7723a7f
commit 19465fb522
No known key found for this signature in database
GPG Key ID: 74EB4D946DD400DA
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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%;