Socket
Socket
Sign inDemoInstall

vueuc

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vueuc - npm Package Compare versions

Comparing version 0.4.42 to 0.4.43

13

es/virtual-list/src/VirtualList.js

@@ -172,4 +172,4 @@ /* eslint-disable no-void */

};
let anchorIndex = undefined;
let anchorTimerId = 0;
let anchorIndex;
let anchorTimerId = null;
function scrollToIndex(index, behavior, debounce) {

@@ -187,3 +187,3 @@ const { value: ft } = finweckTreeRef;

anchorIndex = index;
if (anchorTimerId) {
if (anchorTimerId !== null) {
window.clearTimeout(anchorTimerId);

@@ -193,3 +193,3 @@ }

anchorIndex = undefined;
anchorTimerId = 0;
anchorTimerId = null;
}, 16); // use 0 ms may be ealier than resize callback...

@@ -255,3 +255,3 @@ const { scrollTop, offsetHeight } = listElRef.value;

const listEl = listElRef.value;
if (listEl) {
if (listEl != null) {
if (anchorIndex === undefined) {

@@ -296,4 +296,5 @@ const previousHeightSum = ft.sum(index);

const listEl = listElRef.value;
if (listEl) {
if (listEl != null) {
listEl.scrollTop += e.deltaY / ensureWheelScale();
listEl.scrollLeft += e.deltaX / ensureWheelScale();
syncViewport();

@@ -300,0 +301,0 @@ wheelCatched = true;

@@ -177,4 +177,4 @@ "use strict";

};
let anchorIndex = undefined;
let anchorTimerId = 0;
let anchorIndex;
let anchorTimerId = null;
function scrollToIndex(index, behavior, debounce) {

@@ -192,3 +192,3 @@ const { value: ft } = finweckTreeRef;

anchorIndex = index;
if (anchorTimerId) {
if (anchorTimerId !== null) {
window.clearTimeout(anchorTimerId);

@@ -198,3 +198,3 @@ }

anchorIndex = undefined;
anchorTimerId = 0;
anchorTimerId = null;
}, 16); // use 0 ms may be ealier than resize callback...

@@ -260,3 +260,3 @@ const { scrollTop, offsetHeight } = listElRef.value;

const listEl = listElRef.value;
if (listEl) {
if (listEl != null) {
if (anchorIndex === undefined) {

@@ -301,4 +301,5 @@ const previousHeightSum = ft.sum(index);

const listEl = listElRef.value;
if (listEl) {
if (listEl != null) {
listEl.scrollTop += e.deltaY / (0, config_1.ensureWheelScale)();
listEl.scrollLeft += e.deltaX / (0, config_1.ensureWheelScale)();
syncViewport();

@@ -305,0 +306,0 @@ wheelCatched = true;

{
"name": "vueuc",
"version": "0.4.42",
"version": "0.4.43",
"description": "Util Components for Vue",

@@ -5,0 +5,0 @@ "main": "lib/index.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