zesage / panorama

Panorama - Flutter Widget
Apache License 2.0
114 stars 71 forks source link

Fix to prevent the AnimationController from stopping if a sensorControl is active #32

Closed cellininicholas closed 2 years ago

cellininicholas commented 2 years ago

I found that if I was setting sensorControl on the Panorama class, to the following... sensorControl: SensorControl.AbsoluteOrientation, AND animSpeed to 0, the tracking wasn't working.

I discovered that the AnimationController was being stopped prematurely in my case, so I added a check to make sure widget.sensorControl == SensorControl.None before the AnimationController is stopped.