Skip to content

Commit

Permalink
fix cursor sync when x keys don't match. close leeoniya#967.
Browse files Browse the repository at this point in the history
  • Loading branch information
leeoniya committed Jul 8, 2024
1 parent 3a448dc commit 91de800
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/uPlot.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5431,7 +5431,7 @@ function uPlot(opts, data, then) {
if (dragX || dragY) {
let { left, top, width, height } = src.select;

let sori = src.scales[xKey].ori;
let sori = src.scales[xKeySrc].ori;
let sPosToVal = src.posToVal;

let sOff, sDim, sc, a, b;
Expand Down
2 changes: 1 addition & 1 deletion dist/uPlot.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -5429,7 +5429,7 @@ function uPlot(opts, data, then) {
if (dragX || dragY) {
let { left, top, width, height } = src.select;

let sori = src.scales[xKey].ori;
let sori = src.scales[xKeySrc].ori;
let sPosToVal = src.posToVal;

let sOff, sDim, sc, a, b;
Expand Down
2 changes: 1 addition & 1 deletion dist/uPlot.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -5432,7 +5432,7 @@ var uPlot = (function () {
if (dragX || dragY) {
let { left, top, width, height } = src.select;

let sori = src.scales[xKey].ori;
let sori = src.scales[xKeySrc].ori;
let sPosToVal = src.posToVal;

let sOff, sDim, sc, a, b;
Expand Down
2 changes: 1 addition & 1 deletion dist/uPlot.iife.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/uPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2872,7 +2872,7 @@ export default function uPlot(opts, data, then) {
if (dragX || dragY) {
let { left, top, width, height } = src.select;

let sori = src.scales[xKey].ori;
let sori = src.scales[xKeySrc].ori;
let sPosToVal = src.posToVal;

let sOff, sDim, sc, a, b;
Expand Down

0 comments on commit 91de800

Please sign in to comment.