Fix zoom in statistic chart (#26034)

This commit is contained in:
Paul Bottein 2025-07-02 17:18:39 +02:00 committed by GitHub
parent 3e1341a731
commit cc68a087a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -390,6 +390,7 @@ export class HaChartBase extends LitElement {
type: "inside", type: "inside",
orient: "horizontal", orient: "horizontal",
filterMode: "none", filterMode: "none",
xAxisIndex: 0,
moveOnMouseMove: !this._isTouchDevice || this._isZoomed, moveOnMouseMove: !this._isTouchDevice || this._isZoomed,
preventDefaultMouseMove: !this._isTouchDevice || this._isZoomed, preventDefaultMouseMove: !this._isTouchDevice || this._isZoomed,
zoomLock: !this._isTouchDevice && !this._modifierPressed, zoomLock: !this._isTouchDevice && !this._modifierPressed,