Skip to content

Commit

Permalink
Merge pull request #989 from tradingview/fix_incorrect_crosshair_posi…
Browse files Browse the repository at this point in the history
…tion

fix: move crosshair with mouse move event
  • Loading branch information
timocov authored Jan 24, 2022
2 parents f2b1af0 + a9df407 commit cd2df57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = [
{
name: 'ESM',
path: 'dist/lightweight-charts.esm.production.js',
limit: '44.9 KB',
limit: '45 KB',
},
{
name: 'Standalone',
Expand Down
1 change: 1 addition & 0 deletions src/gui/pane-widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export class PaneWidget implements IDestroyable, MouseEventHandlers {
public pressedMouseMoveEvent(event: MouseEventHandlerMouseEvent): void {
this._onMouseEvent();
this._pressedMouseTouchMoveEvent(event);
this._setCrosshairPosition(event.localX, event.localY);
}

public mouseUpEvent(event: MouseEventHandlerMouseEvent): void {
Expand Down

0 comments on commit cd2df57

Please sign in to comment.