Skip to content

Commit a48db74

Browse files
committed
fix: allow negative dragOffset
1 parent 045f5cd commit a48db74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/charting/utils/ViewPortHandler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ export class ViewPortHandler {
659659
* @return
660660
*/
661661
public hasNoDragOffset() {
662-
return this.mTransOffsetX <= 0 && this.mTransOffsetY <= 0;
662+
return this.mTransOffsetX !== 0 && this.mTransOffsetY !== 0;
663663
}
664664

665665
/**

0 commit comments

Comments
 (0)