forked from the1812/Bilibili-Evolved
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(video-speed-controller): fix the1812#1504
* API 变化 - `getInstance` 和 `constructor` 均新增一个参数,用于传递原生倍速值 - 在 `containerElement` 元素上分发的自定义事件的 `detail` 属性新增一个 `isNativeSpeed` 属性,用于表示变更的倍速是否为原生倍速 * 功能变化 - 现在缓存命中机制除了考虑 `containerElement` 元素,还会比较上一次倍数值和原生倍速值 - 修正了内部原生倍速值的获取方法,现在优先使用传入的原生倍速值,其次尝试使用上一次倍数值,最后才使用默认的 1.0x 值
- Loading branch information
1 parent
a408d89
commit 5de960c
Showing
1 changed file
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters