nextcloud-server/core
Daniel Calviño Sánchez de4028336a Force the drag to end when the navigation bar Snap is disabled by an app
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: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-12-14 21:42:39 +01:00
..
ajax Get the Installer via DI 2017-11-25 12:00:57 +01:00
Command Get the Installer via DI 2017-11-25 12:00:57 +01:00
Controller Merge pull request #7324 from nextcloud/no-sorters-no-instances 2017-12-11 15:27:44 +01:00
css Removed unwanted and unused spacer 2017-12-12 16:45:56 +01:00
doc
fonts
img Merge pull request #6670 from nextcloud/handle-encryption-state-in-web-interface 2017-12-06 16:19:17 +01:00
js Force the drag to end when the navigation bar Snap is disabled by an app 2017-12-14 21:42:39 +01:00
l10n [tx-robot] updated from transifex 2017-12-11 01:10:20 +00:00
Middleware Update license headers 2017-11-06 16:56:19 +01:00
Migrations Change @georgehrke's email 2017-11-06 20:38:59 +01:00
search
skeleton
templates Removed unwanted and unused spacer 2017-12-12 16:45:56 +01:00
vendor Force the drag to end when the navigation bar Snap is disabled by an app 2017-12-14 21:42:39 +01:00
Application.php Update license headers 2017-11-06 16:56:19 +01:00
register_command.php Get the Installer via DI 2017-11-25 12:00:57 +01:00
routes.php Change @georgehrke's email 2017-11-06 20:38:59 +01:00
shipped.json
strings.php