@d-i-t-a/reader 2.3.5 → 2.3.7

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/esm/index.js CHANGED
@@ -51075,6 +51075,7 @@ var TextHighlighter = class {
51075
51075
  window.addEventListener("resize", this.toolboxPlacement.bind(this));
51076
51076
  }
51077
51077
  doc.addEventListener("selectionchange", this.toolboxPlacement.bind(this));
51078
+ doc.addEventListener("selectionchange", this.toolboxShowDelayed.bind(this));
51078
51079
  el.addEventListener("mousedown", this.toolboxHide.bind(this));
51079
51080
  el.addEventListener("touchstart", this.toolboxHide.bind(this));
51080
51081
  if (this.isAndroid()) {
@@ -53005,7 +53006,11 @@ var ConsumptionModule = class {
53005
53006
  this.currSeconds++;
53006
53007
  if (this.currSeconds === this.properties.idleTimeout) {
53007
53008
  this.api?.idleSince(this.currSeconds);
53008
- this.updateResearchSession();
53009
+ if (this.startResearchTimer !== void 0) {
53010
+ this.updateResearchSession();
53011
+ } else {
53012
+ this.startResearchSession();
53013
+ }
53009
53014
  }
53010
53015
  if (this.currSeconds === this.properties.idleTimeout + this.properties.responseTimeout) {
53011
53016
  this.endResearchSession();