nextcloud/core/js
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
..
files Merge pull request #6079 from nextcloud/fix-antivirus 2017-12-11 17:12:02 +01:00
login Update login flow redirection 2017-05-04 19:21:22 +02:00
public Use dot notation for array access - JSLint recommendation 2017-05-01 00:45:41 -03:00
systemtags Fix some long lines in JS - JSLinut recommendation 2017-05-01 00:49:00 -03:00
tests Force the drag to end when the navigation bar Snap is disabled by an app 2017-12-14 21:42:39 +01:00
apps.js Fix settings button state and opacity 2017-09-28 17:13:00 +02:00
backgroundjobs.js Use tooltip for background jobs info tooltip 2016-07-13 13:01:17 +02:00
config.js Make AppConfig part of the public API 2016-10-21 09:09:23 +02:00
contactsmenu.js Fix contacts menu for IE11 2017-10-09 15:09:11 +02:00
core.json add contactsmenu popover 2017-04-26 09:26:53 +02:00
eventsource.js Encode requesttoken 2015-02-16 20:28:30 +01:00
installation.js load showpassord.js conditionally in the template only if needed 2014-12-16 18:45:37 +01:00
integritycheck-failed-notification.js Allow to dismiss the code integrity warning 2016-10-20 11:33:29 +02:00
jquery-showpassword.js This fix the overlay of the complexity bar 2017-07-26 16:05:31 +02:00
jquery-ui-fixes.js Fix semicolon at end of JS lines 2017-05-01 00:42:53 -03:00
jquery.avatar.js Add empty alt text to avatars as they are decorative next to usernames 2017-09-29 20:28:27 +02:00
jquery.contactsmenu.js handle 404 separately 2017-04-26 09:30:21 +02:00
jquery.ocdialog.js Destroy modal when closed 2017-10-17 09:09:45 +01:00
js.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.js Harden t() with DOMPurify 2017-03-16 14:17:42 +01:00
login.js Not disabled by default 2017-11-05 17:38:29 +01:00
lostpassword.js Fix template order and animation 2017-11-05 18:14:52 +01:00
maintenance-check.js Use OC.webroot instead of calculating the URL 2015-05-11 17:01:57 +02:00
merged-login.json Merge login JS 2017-03-24 21:18:24 +01:00
merged-share-backend.json Merge sharing backend JS 2017-03-24 20:17:38 +01:00
merged-template-prepend.json Add select2-toggleselect to the JavaScript files to load 2017-07-10 03:38:22 +02:00
mimetype.js show e2e folder icon on encrypted folders 2017-11-20 21:00:26 +01:00
mimetypelist.js show e2e folder icon on encrypted folders 2017-11-20 21:00:26 +01:00
multiselect.js Users page lazy multiselect group dropdowns 2016-08-29 13:34:13 +02:00
oc-backbone-webdav.js Backbone Webdav Adapter MKCOL support 2017-03-17 00:08:48 -06:00
oc-backbone.js Backbone transport for Webdav 2016-01-16 11:28:04 +01:00
oc-dialogs.js Fix click error on oc-dialog breadcrumb 2017-11-08 13:04:40 +01:00
oc-requesttoken.js Do not add sensitive request headers for cross domain requests 2015-09-15 11:42:13 +02:00
octemplate.js Fix variable definitions in oc dialogs 2017-05-01 01:09:29 -03:00
placeholder.js Don't show placeholder when we have loaded the avatar image 2017-09-26 22:50:16 +02:00
select2-toggleselect.js Added system tags GUI in sidebar 2016-01-19 16:24:26 +01:00
setup.js Fix semicolon at end of JS lines 2017-05-01 00:42:53 -03:00
setupchecks.js Add warning regarding freetype support 2017-12-13 17:20:48 +01:00
share.js Merge pull request #6670 from nextcloud/handle-encryption-state-in-web-interface 2017-12-06 16:19:17 +01:00
shareconfigmodel.js allow admin to enforce password on mail shares 2017-04-20 16:33:26 +02:00
sharedialogexpirationview.js Fix some jshint issues in core/js/share* 2016-08-19 21:03:25 +02:00
sharedialoglinkshareview.js Set autocomplete on share password input 2017-12-12 11:33:12 +01:00
sharedialogresharerinfoview.js Fix escaping of user and group names in "shared by" message 2017-06-13 12:14:21 +02:00
sharedialogshareelistview.js only replace permission popupmenu 2017-11-17 17:08:29 +01:00
sharedialogview.js Trigger search after re-focus 2017-08-15 13:36:51 +02:00
shareitemmodel.js Make files drop more permanent 2017-05-04 00:30:51 +02:00
sharesocialmanager.js Allow social sharing to specify if a new window is opened 2017-04-20 16:32:46 +02:00
singleselect.js Quota bar fix on user list 2017-09-27 22:13:19 +02:00
update.js Spacing 2017-03-15 06:35:40 +00:00
visitortimezone.js Save the timezone on login again 2016-12-08 10:45:24 +01:00