diff --git a/CHANGELOG.md b/CHANGELOG.md index a9f9185..b4d71c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.5.8 +* Fix the bug with dragging cursors + ## 2.5.7 * Fix rendering visual when scroll is enabled. Fix scroll arrows not being clicked * Remove range header font size restrictions diff --git a/package-lock.json b/package-lock.json index 3762e31..2836624 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "powerbi-visuals-timeline", - "version": "2.5.7.0", + "version": "2.5.8.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "powerbi-visuals-timeline", - "version": "2.5.7.0", + "version": "2.5.8.0", "license": "MIT", "dependencies": { "@typescript-eslint/eslint-plugin": "^7.17.0", diff --git a/package.json b/package.json index 234e1e5..bb1f6f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "powerbi-visuals-timeline", - "version": "2.5.7.0", + "version": "2.5.8.0", "description": "Timeline slicer is a graphical date range selector used as a filtering component in the report canvas", "repository": { "type": "git", diff --git a/pbiviz.json b/pbiviz.json index 80afd55..60e0875 100644 --- a/pbiviz.json +++ b/pbiviz.json @@ -1,10 +1,10 @@ { "visual": { "name": "Timeline", - "displayName": "Timeline 2.5.7.0", + "displayName": "Timeline 2.5.8.0", "guid": "Timeline1447991079100", "visualClassName": "Timeline", - "version": "2.5.7.0", + "version": "2.5.8.0", "description": "Timeline slicer is a graphical date range selector used as a filtering component in the report canvas", "supportUrl": "https://community.powerbi.com", "gitHubUrl": "https://github.com/Microsoft/powerbi-visuals-timeline" diff --git a/src/timeLine.ts b/src/timeLine.ts index 163c561..f1bcafa 100644 --- a/src/timeLine.ts +++ b/src/timeLine.ts @@ -1141,8 +1141,7 @@ export class Timeline implements powerbiVisualsApi.extensibility.visual.IVisual } public onCursorDrag(event: D3DragEvent, currentCursor: ICursorDataPoint): void { - const mouseEvent: MouseEvent = event.sourceEvent; - const cursorOverElement: ITimelineCursorOverElement = this.findCursorOverElement(mouseEvent.x); + const cursorOverElement: ITimelineCursorOverElement = this.findCursorOverElement(event.x); if (!cursorOverElement) { return;