index-scrollbar
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -99,2 +99,4 @@ 'use strict'; | ||
this.alphabetContainer.addEventListener('mouseleave', () => this.focusEnd(), { passive: true }); | ||
this.alphabetContainer.addEventListener('mousedown', ev => this.focusEvent(ev, 'mousedown'), { passive: true }); | ||
this.alphabetContainer.addEventListener('mouseup', () => this.focusEnd(), { passive: true }); | ||
// this.alphabetContainer.addEventListener('click', ev => this.focusEvent(ev, 'click'), { passive: true }); | ||
@@ -128,2 +130,4 @@ setTimeout(() => { | ||
this.alphabetContainer.removeEventListener('mouseleave', () => this.focusEnd()); | ||
this.alphabetContainer.removeEventListener('mousedown', ev => this.focusEvent(ev, 'mousedown')); | ||
this.alphabetContainer.removeEventListener('mouseup', () => this.focusEnd()); | ||
// this.alphabetContainer.removeEventListener('click', ev => this.focusEvent(ev, 'click')); | ||
@@ -213,5 +217,7 @@ window.removeEventListener('resize', this.checkVisibleLetters.bind(this)); | ||
var _a, _b, _c, _d; | ||
if (type.includes('start')) { | ||
this.isActive.emit(true); | ||
this._isComponentActive = true; | ||
if (type.includes('start') || (type.includes('enter') && this.navigateOnHover) || type.includes('down')) { | ||
if (!this._isComponentActive) { | ||
this.isActive.emit(true); | ||
this._isComponentActive = true; | ||
} | ||
} | ||
@@ -218,0 +224,0 @@ this.setLetterFromCoordinates((_b = (_a = event.touches) === null || _a === void 0 ? void 0 : _a[0].clientX) !== null && _b !== void 0 ? _b : event.clientX, (_d = (_c = event.touches) === null || _c === void 0 ? void 0 : _c[0].clientY) !== null && _d !== void 0 ? _d : event.clientY); |
@@ -89,2 +89,4 @@ import { Component, Host, h, Prop, Event, Element, State, Watch } from '@stencil/core'; | ||
this.alphabetContainer.addEventListener('mouseleave', () => this.focusEnd(), { passive: true }); | ||
this.alphabetContainer.addEventListener('mousedown', ev => this.focusEvent(ev, 'mousedown'), { passive: true }); | ||
this.alphabetContainer.addEventListener('mouseup', () => this.focusEnd(), { passive: true }); | ||
// this.alphabetContainer.addEventListener('click', ev => this.focusEvent(ev, 'click'), { passive: true }); | ||
@@ -118,2 +120,4 @@ setTimeout(() => { | ||
this.alphabetContainer.removeEventListener('mouseleave', () => this.focusEnd()); | ||
this.alphabetContainer.removeEventListener('mousedown', ev => this.focusEvent(ev, 'mousedown')); | ||
this.alphabetContainer.removeEventListener('mouseup', () => this.focusEnd()); | ||
// this.alphabetContainer.removeEventListener('click', ev => this.focusEvent(ev, 'click')); | ||
@@ -203,5 +207,7 @@ window.removeEventListener('resize', this.checkVisibleLetters.bind(this)); | ||
var _a, _b, _c, _d; | ||
if (type.includes('start')) { | ||
this.isActive.emit(true); | ||
this._isComponentActive = true; | ||
if (type.includes('start') || (type.includes('enter') && this.navigateOnHover) || type.includes('down')) { | ||
if (!this._isComponentActive) { | ||
this.isActive.emit(true); | ||
this._isComponentActive = true; | ||
} | ||
} | ||
@@ -208,0 +214,0 @@ this.setLetterFromCoordinates((_b = (_a = event.touches) === null || _a === void 0 ? void 0 : _a[0].clientX) !== null && _b !== void 0 ? _b : event.clientX, (_d = (_c = event.touches) === null || _c === void 0 ? void 0 : _c[0].clientY) !== null && _d !== void 0 ? _d : event.clientY); |
@@ -97,2 +97,4 @@ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client'; | ||
this.alphabetContainer.addEventListener('mouseleave', () => this.focusEnd(), { passive: true }); | ||
this.alphabetContainer.addEventListener('mousedown', ev => this.focusEvent(ev, 'mousedown'), { passive: true }); | ||
this.alphabetContainer.addEventListener('mouseup', () => this.focusEnd(), { passive: true }); | ||
// this.alphabetContainer.addEventListener('click', ev => this.focusEvent(ev, 'click'), { passive: true }); | ||
@@ -126,2 +128,4 @@ setTimeout(() => { | ||
this.alphabetContainer.removeEventListener('mouseleave', () => this.focusEnd()); | ||
this.alphabetContainer.removeEventListener('mousedown', ev => this.focusEvent(ev, 'mousedown')); | ||
this.alphabetContainer.removeEventListener('mouseup', () => this.focusEnd()); | ||
// this.alphabetContainer.removeEventListener('click', ev => this.focusEvent(ev, 'click')); | ||
@@ -211,5 +215,7 @@ window.removeEventListener('resize', this.checkVisibleLetters.bind(this)); | ||
var _a, _b, _c, _d; | ||
if (type.includes('start')) { | ||
this.isActive.emit(true); | ||
this._isComponentActive = true; | ||
if (type.includes('start') || (type.includes('enter') && this.navigateOnHover) || type.includes('down')) { | ||
if (!this._isComponentActive) { | ||
this.isActive.emit(true); | ||
this._isComponentActive = true; | ||
} | ||
} | ||
@@ -216,0 +222,0 @@ this.setLetterFromCoordinates((_b = (_a = event.touches) === null || _a === void 0 ? void 0 : _a[0].clientX) !== null && _b !== void 0 ? _b : event.clientX, (_d = (_c = event.touches) === null || _c === void 0 ? void 0 : _c[0].clientY) !== null && _d !== void 0 ? _d : event.clientY); |
@@ -95,2 +95,4 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5f889f85.js'; | ||
this.alphabetContainer.addEventListener('mouseleave', () => this.focusEnd(), { passive: true }); | ||
this.alphabetContainer.addEventListener('mousedown', ev => this.focusEvent(ev, 'mousedown'), { passive: true }); | ||
this.alphabetContainer.addEventListener('mouseup', () => this.focusEnd(), { passive: true }); | ||
// this.alphabetContainer.addEventListener('click', ev => this.focusEvent(ev, 'click'), { passive: true }); | ||
@@ -124,2 +126,4 @@ setTimeout(() => { | ||
this.alphabetContainer.removeEventListener('mouseleave', () => this.focusEnd()); | ||
this.alphabetContainer.removeEventListener('mousedown', ev => this.focusEvent(ev, 'mousedown')); | ||
this.alphabetContainer.removeEventListener('mouseup', () => this.focusEnd()); | ||
// this.alphabetContainer.removeEventListener('click', ev => this.focusEvent(ev, 'click')); | ||
@@ -209,5 +213,7 @@ window.removeEventListener('resize', this.checkVisibleLetters.bind(this)); | ||
var _a, _b, _c, _d; | ||
if (type.includes('start')) { | ||
this.isActive.emit(true); | ||
this._isComponentActive = true; | ||
if (type.includes('start') || (type.includes('enter') && this.navigateOnHover) || type.includes('down')) { | ||
if (!this._isComponentActive) { | ||
this.isActive.emit(true); | ||
this._isComponentActive = true; | ||
} | ||
} | ||
@@ -214,0 +220,0 @@ this.setLetterFromCoordinates((_b = (_a = event.touches) === null || _a === void 0 ? void 0 : _a[0].clientX) !== null && _b !== void 0 ? _b : event.clientX, (_d = (_c = event.touches) === null || _c === void 0 ? void 0 : _c[0].clientY) !== null && _d !== void 0 ? _d : event.clientY); |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as i}from"./p-d4d31fe4.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-fbdfdf8c",[[1,"index-scrollbar",{alphabet:[16],overflowDivider:[1,"overflow-divider"],validLetters:[16],disableInvalidLetters:[4,"disable-invalid-letters"],prioritizeHidingInvalidLetters:[4,"prioritize-hiding-invalid-letters"],letterMagnification:[4,"letter-magnification"],magnifyDividers:[4,"magnify-dividers"],magnificationMultiplier:[2,"magnification-multiplier"],magnificationCurve:[16],exactX:[4,"exact-x"],navigateOnHover:[4,"navigate-on-hover"],letterSpacing:[8,"letter-spacing"],offsetSizeCheckInterval:[2,"offset-size-check-interval"],_isComponentActive:[32],visibleLetters:[32],rendering:[32],_lastEmittedLetter:[32],magIndex:[32],_isInBounds:[32],visualLetterIndex:[32],letterSelected:[32]}]]]],e))); | ||
import{p as e,b as i}from"./p-d4d31fe4.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-35d81e67",[[1,"index-scrollbar",{alphabet:[16],overflowDivider:[1,"overflow-divider"],validLetters:[16],disableInvalidLetters:[4,"disable-invalid-letters"],prioritizeHidingInvalidLetters:[4,"prioritize-hiding-invalid-letters"],letterMagnification:[4,"letter-magnification"],magnifyDividers:[4,"magnify-dividers"],magnificationMultiplier:[2,"magnification-multiplier"],magnificationCurve:[16],exactX:[4,"exact-x"],navigateOnHover:[4,"navigate-on-hover"],letterSpacing:[8,"letter-spacing"],offsetSizeCheckInterval:[2,"offset-size-check-interval"],_isComponentActive:[32],visibleLetters:[32],rendering:[32],_lastEmittedLetter:[32],magIndex:[32],_isInBounds:[32],visualLetterIndex:[32],letterSelected:[32]}]]]],e))); |
{ | ||
"name": "index-scrollbar", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "Stencil Component Starter", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
405004
6440