mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 21:31:20 -08:00
typofix
This commit is contained in:
1 parent
c5c5d6cf04
commit
1fe3ffdeae
9 files changed
+24
-34
No files matched your search
@@ -9,14 +9,12 @@ export default class Thumbnails {
|
||||
|
||||
apply(art) {
|
||||
this.art = art;
|
||||
errorHandle(this.art.controls.progress, '\'thumbnails\' control dependent on \'progress\' control');
|
||||
this.init();
|
||||
}
|
||||
|
||||
init() {
|
||||
const {
|
||||
refs: { $progress },
|
||||
events: { proxy }
|
||||
} = this.art;
|
||||
const { refs: { $progress }, events: { proxy } } = this.art;
|
||||
|
||||
proxy($progress, 'mousemove', event => {
|
||||
if (!this.loading) {
|
||||
@@ -55,7 +53,6 @@ export default class Thumbnails {
|
||||
|
||||
showThumbnails(event) {
|
||||
const { refs: { $progress }, controls } = this.art;
|
||||
errorHandle(controls.progress, '\'thumbnails\' control dependent on \'progress\' control');
|
||||
const { width: posWidth } = controls.progress.getPosFromEvent(event);
|
||||
const { url, height, width, number, column } = this.art.option.thumbnails;
|
||||
const perWidth = $progress.clientWidth / number;
|
||||
|
||||
Reference in new issue
Block a user