Skip to content

Commit

Permalink
fix(events): disable drag upperThanTop for full height top breakpoint (
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-rr committed Jan 14, 2022
1 parent fe27ab1 commit d048dbd
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
8 changes: 4 additions & 4 deletions dist/cupertino-pane.esm.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Cupertino Pane 1.2.8
* Cupertino Pane 1.2.81
* Multi-functional panes and boards for next generation progressive applications
* https://github.com/roman-rr/cupertino-pane/
*
* Copyright 2019-2021 Roman Antonov (roman-rr)
* Copyright 2019-2022 Roman Antonov (roman-rr)
*
* Released under the MIT License
*
* Released on: December 30, 2021
* Released on: January 15, 2022
*/

/*! *****************************************************************************
Expand Down Expand Up @@ -475,7 +475,7 @@ class Events {
clientX, clientY,
newVal, diffY
});
if (forceNewVal) {
if (!isNaN(forceNewVal)) {
newVal = forceNewVal;
}
// No changes Y
Expand Down
8 changes: 4 additions & 4 deletions dist/cupertino-pane.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cupertino-pane.esm.min.js.map

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions dist/cupertino-pane.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/cupertino-pane.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cupertino-pane.min.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ export class Events {
clientX, clientY,
newVal, diffY
});
if (forceNewVal) {

if (!isNaN(forceNewVal)) {
newVal = forceNewVal;
}

Expand Down

0 comments on commit d048dbd

Please sign in to comment.