}
this.copyQuote.classList.add("active");
+ const wasInaccessible = this.copyQuote.classList.contains("touchForceInaccessible");
+ if (wasInaccessible) {
+ this.copyQuote.classList.remove("touchForceInaccessible");
+ }
const coordinates = this.getElementBoundaries(selection)!;
const dimensions = { height: this.copyQuote.offsetHeight, width: this.copyQuote.offsetWidth };
this.copyQuote.style.setProperty("top", `${coordinates.bottom + 7}px`);
this.copyQuote.style.setProperty("left", `${left}px`);
this.copyQuote.classList.remove("active");
+ if (wasInaccessible) {
+ this.copyQuote.classList.add("touchForceInaccessible");
+ }
if (!this.timerSelectionChange) {
// reset containerID
return;
}
this.copyQuote.classList.add("active");
+ const wasInaccessible = this.copyQuote.classList.contains("touchForceInaccessible");
+ if (wasInaccessible) {
+ this.copyQuote.classList.remove("touchForceInaccessible");
+ }
const coordinates = this.getElementBoundaries(selection);
const dimensions = { height: this.copyQuote.offsetHeight, width: this.copyQuote.offsetWidth };
let left = (coordinates.right - coordinates.left) / 2 - dimensions.width / 2 + coordinates.left;
this.copyQuote.style.setProperty("top", `${coordinates.bottom + 7}px`);
this.copyQuote.style.setProperty("left", `${left}px`);
this.copyQuote.classList.remove("active");
+ if (wasInaccessible) {
+ this.copyQuote.classList.add("touchForceInaccessible");
+ }
if (!this.timerSelectionChange) {
// reset containerID
this.activeMessageId = "";