Socket
Socket
Sign inDemoInstall

index-scrollbar

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

index-scrollbar - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

dist/index-scrollbar/p-fbdfdf8c.entry.js

16

dist/cjs/index-scrollbar.cjs.entry.js

@@ -41,3 +41,2 @@ 'use strict';

this.offsetSizeCheckInterval = 0;
this._lastEmittedActive = false;
this._isComponentActive = false;

@@ -213,13 +212,6 @@ this.visibleLetters = [];

var _a, _b, _c, _d;
if (!this._lastEmittedActive) {
this.isActive.emit((this._lastEmittedActive = true));
if (type.includes('start')) {
this.isActive.emit(true);
this._isComponentActive = true;
}
if (type === 'click') {
if (this._lastEmittedActive) {
this.isActive.emit((this._lastEmittedActive = false));
}
this._isComponentActive = false;
}
else if (!this._isComponentActive)
this._isComponentActive = true;
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);

@@ -231,3 +223,3 @@ if (this._lastEmittedLetter !== this.letterSelected && (this.navigateOnHover || !type.includes('mouse'))) {

focusEnd() {
this.isActive.emit((this._isComponentActive = this._lastEmittedActive = false));
this.isActive.emit((this._isComponentActive = false));
}

@@ -234,0 +226,0 @@ setLetterFromCoordinates(x, y) {

@@ -31,3 +31,2 @@ import { Component, Host, h, Prop, Event, Element, State, Watch } from '@stencil/core';

this.offsetSizeCheckInterval = 0;
this._lastEmittedActive = false;
this._isComponentActive = false;

@@ -203,13 +202,6 @@ this.visibleLetters = [];

var _a, _b, _c, _d;
if (!this._lastEmittedActive) {
this.isActive.emit((this._lastEmittedActive = true));
if (type.includes('start')) {
this.isActive.emit(true);
this._isComponentActive = true;
}
if (type === 'click') {
if (this._lastEmittedActive) {
this.isActive.emit((this._lastEmittedActive = false));
}
this._isComponentActive = false;
}
else if (!this._isComponentActive)
this._isComponentActive = true;
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);

@@ -221,3 +213,3 @@ if (this._lastEmittedLetter !== this.letterSelected && (this.navigateOnHover || !type.includes('mouse'))) {

focusEnd() {
this.isActive.emit((this._isComponentActive = this._lastEmittedActive = false));
this.isActive.emit((this._isComponentActive = false));
}

@@ -224,0 +216,0 @@ setLetterFromCoordinates(x, y) {

@@ -39,3 +39,2 @@ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';

this.offsetSizeCheckInterval = 0;
this._lastEmittedActive = false;
this._isComponentActive = false;

@@ -211,13 +210,6 @@ this.visibleLetters = [];

var _a, _b, _c, _d;
if (!this._lastEmittedActive) {
this.isActive.emit((this._lastEmittedActive = true));
if (type.includes('start')) {
this.isActive.emit(true);
this._isComponentActive = true;
}
if (type === 'click') {
if (this._lastEmittedActive) {
this.isActive.emit((this._lastEmittedActive = false));
}
this._isComponentActive = false;
}
else if (!this._isComponentActive)
this._isComponentActive = true;
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);

@@ -229,3 +221,3 @@ if (this._lastEmittedLetter !== this.letterSelected && (this.navigateOnHover || !type.includes('mouse'))) {

focusEnd() {
this.isActive.emit((this._isComponentActive = this._lastEmittedActive = false));
this.isActive.emit((this._isComponentActive = false));
}

@@ -232,0 +224,0 @@ setLetterFromCoordinates(x, y) {

@@ -37,3 +37,2 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5f889f85.js';

this.offsetSizeCheckInterval = 0;
this._lastEmittedActive = false;
this._isComponentActive = false;

@@ -209,13 +208,6 @@ this.visibleLetters = [];

var _a, _b, _c, _d;
if (!this._lastEmittedActive) {
this.isActive.emit((this._lastEmittedActive = true));
if (type.includes('start')) {
this.isActive.emit(true);
this._isComponentActive = true;
}
if (type === 'click') {
if (this._lastEmittedActive) {
this.isActive.emit((this._lastEmittedActive = false));
}
this._isComponentActive = false;
}
else if (!this._isComponentActive)
this._isComponentActive = true;
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);

@@ -227,3 +219,3 @@ if (this._lastEmittedLetter !== this.letterSelected && (this.navigateOnHover || !type.includes('mouse'))) {

focusEnd() {
this.isActive.emit((this._isComponentActive = this._lastEmittedActive = false));
this.isActive.emit((this._isComponentActive = false));
}

@@ -230,0 +222,0 @@ setLetterFromCoordinates(x, y) {

@@ -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-0bdc62f0",[[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-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)));

@@ -30,3 +30,2 @@ import { EventEmitter } from '../../stencil-public-runtime';

isActive: EventEmitter<boolean>;
private _lastEmittedActive;
_isComponentActive: boolean;

@@ -33,0 +32,0 @@ scrolling: EventEmitter<boolean>;

{
"name": "index-scrollbar",
"version": "1.0.18",
"version": "1.0.19",
"description": "Stencil Component Starter",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc