openalgo-charts 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1385,6 +1385,19 @@ declare class Chart {
1385
1385
  private readonly _onPointerDown;
1386
1386
  private readonly _onPointerMove;
1387
1387
  private readonly _onPointerUp;
1388
+ /**
1389
+ * DOM pointerup entry point. Mirrors the primary-button guard in
1390
+ * `_onPointerDown`: a right-click (or any non-primary mouse button) fires
1391
+ * pointerdown *and* pointerup, but `_onPointerDown` ignores it — so the
1392
+ * down state (`_downX`/`_downLocalY`/`_downPane`/`_pointerMoved`) is never
1393
+ * refreshed and still holds the *previous* left-click. Letting a non-primary
1394
+ * pointerup through would re-run the click branch against that stale position
1395
+ * and replay the last click (e.g. re-firing a Buy/Sell button → a phantom
1396
+ * order). Touch/pen are unaffected (they contact with button 0). The internal
1397
+ * recovery call from `_onPointerMove` invokes `_onPointerUp` directly, so it
1398
+ * bypasses this filter and still ends a drag when a button release is missed.
1399
+ */
1400
+ private readonly _onPointerUpNative;
1388
1401
  private readonly _onPointerLeave;
1389
1402
  private readonly _onWheel;
1390
1403
  /**