presenter 0.8.4 → 0.8.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.
@@ -2230,7 +2230,7 @@ class jn {
2230
2230
  }
2231
2231
  next(e = !1) {
2232
2232
  const { presentation: t } = this.props, { currentAnimationId: o, slideIndex: i, buildIndex: a } = this.state;
2233
- this.props.element.style.cursor = "none", o !== null && cancelAnimationFrame(o);
2233
+ this.hideCursor(), o !== null && cancelAnimationFrame(o);
2234
2234
  const s = t.slides[i];
2235
2235
  if (s === void 0)
2236
2236
  return;
@@ -2245,7 +2245,7 @@ class jn {
2245
2245
  }
2246
2246
  previous(e = !1) {
2247
2247
  const { currentAnimationId: t, slideIndex: o, buildIndex: i } = this.state;
2248
- if (this.props.element.style.cursor = "none", t !== null && cancelAnimationFrame(t), i > 0)
2248
+ if (this.hideCursor(), t !== null && cancelAnimationFrame(t), i > 0)
2249
2249
  e ? this.renderSlide(o, 0) : this.renderSlide(o, i - 1);
2250
2250
  else if (o > 0) {
2251
2251
  const a = this.props.presentation.slides[o - 1], s = e ? 0 : (a == null ? void 0 : a.animations.length) ?? 0;
@@ -2261,6 +2261,10 @@ class jn {
2261
2261
  const { slideIndex: e, buildIndex: t } = this.state;
2262
2262
  return t > 0 || e > 0;
2263
2263
  }
2264
+ hideCursor() {
2265
+ var e, t;
2266
+ this.props.element.style.cursor = "none", (t = (e = this.state.canvas) == null ? void 0 : e.parentElement) == null || t.style.setProperty("cursor", "none");
2267
+ }
2264
2268
  }
2265
2269
  function S1(n) {
2266
2270
  return n <= 0 || n > 1 ? (console.warn(