Skip to content
Snippets Groups Projects
  1. Jan 09, 2019
  2. Dec 10, 2018
  3. Nov 26, 2018
  4. Nov 07, 2018
  5. Oct 10, 2018
  6. Oct 03, 2018
  7. Sep 28, 2018
  8. Jul 24, 2018
  9. Jun 28, 2018
  10. Jun 20, 2018
  11. May 17, 2018
  12. Apr 29, 2018
  13. Jan 29, 2018
  14. Jan 26, 2018
  15. Jan 10, 2018
  16. Dec 14, 2017
    • Daniel Calviño Sánchez's avatar
      Force the drag to end when the navigation bar Snap is disabled by an app · de402833
      Daniel Calviño Sánchez authored
      
      When a Snap was disabled it stopped listening to the events, but if a
      drag gesture was being performed it was kept as active. Thus, when the
      Snap was enabled again move events were handled as if the Snap had never
      been disabled, causing the gesture handling to continue where it was
      left.
      
      When the Snap for the navigation bar is disabled by an app it could be
      as a result of a different gesture being recognized by the app (for
      example, a vertical swipe) once both gestures have started. In that case
      when the other gesture ends and the Snap is enabled again any pointer
      movement will cause the navigation bar to slide until an "up" event is
      triggered again (obviously not the desired behaviour).
      
      Due to all this now when the Snap for the navigation bar is disabled by
      an app the current drag gesture for the navigation bar is ended.
      
      Note that this was added as a parameter to "Snap.disable()" instead of
      done unconditionally to keep back-compatibility with the previous
      behaviour (probably not really needed as it is unlikely that any app is
      using the Snap library relying on that behaviour... but just in case).
      
      Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
      de402833
  17. Sep 18, 2017
  18. Sep 15, 2017
  19. Aug 17, 2017
  20. Jun 16, 2017
  21. Jun 09, 2017
  22. May 17, 2017
  23. Apr 21, 2017
  24. Apr 12, 2017
  25. Apr 10, 2017
  26. Apr 03, 2017
  27. Mar 31, 2017
Loading