Skip to content

Commit

Permalink
fix: smooth out flow dots on safari based guis (#85)
Browse files Browse the repository at this point in the history
closes #82
  • Loading branch information
ulic75 authored Jul 5, 2022
1 parent c64e7e3 commit 3ce9ebf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/power-flow-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,12 @@ export class PowerFlowCard extends LitElement {
this.previousDur[flowName] &&
this.previousDur[flowName] !== newDur[flowName]
) {
flowSVGElement.pauseAnimations();
flowSVGElement.setCurrentTime(
flowSVGElement.getCurrentTime() *
(newDur[flowName] / this.previousDur[flowName])
);
flowSVGElement.unpauseAnimations();
}
this.previousDur[flowName] = newDur[flowName];
});
Expand Down

0 comments on commit 3ce9ebf

Please sign in to comment.