@termuijs/widgets 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +11 -7
- package/LICENSE +0 -21
package/dist/index.cjs
CHANGED
|
@@ -2707,6 +2707,7 @@ var Spinner = class extends Widget {
|
|
|
2707
2707
|
* Call this with a delta (ms) from the render loop.
|
|
2708
2708
|
*/
|
|
2709
2709
|
tick(deltaMs) {
|
|
2710
|
+
if (!import_core24.caps.motion) return;
|
|
2710
2711
|
this._elapsed += deltaMs;
|
|
2711
2712
|
if (this._elapsed >= this._interval) {
|
|
2712
2713
|
this._frameIndex = (this._frameIndex + 1) % this._frames.length;
|