Skip to content

Improved performance, bug fixes, web support and new props

Latest
Compare
Choose a tag to compare
@UdaySravanK UdaySravanK released this 02 Feb 03:48

What's Changed

  • screenReaderEnabled value is always being set to true when running the web app. This is breaking the swipe functionality. Removed the 'disable swipe move' gesture when a11y enabled.
  • Detecting the screen reader status across platforms is inconsistent and unreliable. So, exposing this value to give control to higher level components. New prop: screenReaderEnabled. This will override the internal code written to detect screen reader enabled or not.
  • Every container width change goes through an animation with a duration. This is because of listening to width changes through the useEffect. This is also asynchronously updating the width even after pan release. This is causing defects when running in real devices.So, now we have divide width changes into 2 parts.
    • While swipe is in progress, we use 0 duration all the time
    • For the all other animations we use the provided or default duration value i.e. 400ms.
      This will also fix the swipe thumb frozen in the middle on real devices.

PRs

Full Changelog: v2.1.0...v3.0.0