Skip to content

Commit

Permalink
fire setCursor when locking. close #921.
Browse files Browse the repository at this point in the history
  • Loading branch information
leeoniya committed Feb 2, 2024
1 parent 88da5f9 commit b0fd072
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
4 changes: 1 addition & 3 deletions dist/uPlot.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5709,9 +5709,7 @@ function uPlot(opts, data, then) {
}
else if (cursor.lock) {
cursor._lock = !cursor._lock;

if (!cursor._lock)
updateCursor(null, true, false);
updateCursor(null, true, false);
}

if (e != null) {
Expand Down
4 changes: 1 addition & 3 deletions dist/uPlot.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -5707,9 +5707,7 @@ function uPlot(opts, data, then) {
}
else if (cursor.lock) {
cursor._lock = !cursor._lock;

if (!cursor._lock)
updateCursor(null, true, false);
updateCursor(null, true, false);
}

if (e != null) {
Expand Down
4 changes: 1 addition & 3 deletions dist/uPlot.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -5710,9 +5710,7 @@ var uPlot = (function () {
}
else if (cursor.lock) {
cursor._lock = !cursor._lock;

if (!cursor._lock)
updateCursor(null, true, false);
updateCursor(null, true, false);
}

if (e != null) {
Expand Down
2 changes: 1 addition & 1 deletion dist/uPlot.iife.min.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/uPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3188,9 +3188,7 @@ export default function uPlot(opts, data, then) {
}
else if (cursor.lock) {
cursor._lock = !cursor._lock;

if (!cursor._lock)
updateCursor(null, true, false);
updateCursor(null, true, false);
}

if (e != null) {
Expand Down

0 comments on commit b0fd072

Please sign in to comment.