From 0573dd8a4f56bc2f14d4def85966966ad95545e8 Mon Sep 17 00:00:00 2001 From: Janne Julkunen Date: Tue, 21 Nov 2017 09:43:07 +0200 Subject: [PATCH] Bumped up the version for new release --- package-lock.json | 2 +- package.json | 2 +- src/lib/perfect-scrollbar.directive.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 246ec01..811c100 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ngx-perfect-scrollbar", - "version": "4.9.4", + "version": "4.9.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 212c7f1..b31438a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Angular wrapper library for Perfect Scrollbar", "bugs": "https://github.com/zefoy/ngx-perfect-scrollbar/issues", "license": "MIT", - "version": "4.9.4", + "version": "4.9.5", "main": "bundles/ngx-perfect-scrollbar.umd.js", "module": "./dist/index.js", "typings": "./dist/index.d.ts", diff --git a/src/lib/perfect-scrollbar.directive.ts b/src/lib/perfect-scrollbar.directive.ts index 1df1309..15729c9 100644 --- a/src/lib/perfect-scrollbar.directive.ts +++ b/src/lib/perfect-scrollbar.directive.ts @@ -301,7 +301,8 @@ export class PerfectScrollbarDirective implements OnDestroy, DoCheck, OnChanges, this.animateScrolling(target, value, 0); } else { this.elementRef.nativeElement[target] = newValue; - // On a zoomed out page in Chrome the resulting offset may differ from the specified value + + // On a zoomed out page the resulting offset may differ oldValue = this.elementRef.nativeElement[target]; this.ps.update();