1
0
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:
Alexander Skvortsov
2020-07-06 17:40:20 -04:00
committed by Franz Liedke
parent 74cb4f9007
commit 193f3b040d

View File

@@ -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');
}