mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:46:10 +08:00
Fix missing vendor prefix on post scrubber; move styles to Less
This commit is contained in:
parent
0fe7723a7f
commit
19465fb522
@ -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.
|
||||
|
@ -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%;
|
||||
|
Loading…
x
Reference in New Issue
Block a user