mirror of
https://github.com/flarum/core.git
synced 2025-08-10 10:24:46 +02:00
Slightly improve scrubber label accuracy on click
This commit is contained in:
committed by
Franz Liedke
parent
74cb4f9007
commit
193f3b040d
@@ -261,7 +261,6 @@ export default class PostStreamScrubber extends Component {
|
||||
let offsetIndex = offsetPercent / this.percentPerPost().index;
|
||||
offsetIndex = Math.max(0, Math.min(this.state.count() - 1, offsetIndex));
|
||||
this.state.goToIndex(Math.floor(offsetIndex));
|
||||
this.state.index = offsetIndex;
|
||||
|
||||
this.$().removeClass('open');
|
||||
}
|
||||
|
Reference in New Issue
Block a user