You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud/core/vendor
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>
7 years ago
..
DOMPurify Bump DOMPurify to 1.0.0 7 years ago
autosize Move to autosize.min.js 7 years ago
backbone update backbone.js from 1.2.1 to 1.2.3 9 years ago
base64 Add davidchambers/base64 JS library 9 years ago
blueimp-md5 [js] Bump blueimp-md5 a major version 7 years ago
bootstrap Add .bower.json to version control 8 years ago
clipboard Use minified clipboard.js 7 years ago
davclient.js vendor: Update davclient.js to 0.1.2 7 years ago
es6-promise Add .bower.json to version control 8 years ago
handlebars Move to handlebars.min.js 7 years ago
jcrop include lock files of bower to be able to use "bower install" 10 years ago
jquery downgrade jquery, update jquery-migrate 8 years ago
jquery-migrate downgrade jquery, update jquery-migrate 8 years ago
jquery-ui Moved to jquery-ui.custom.min.js 7 years ago
jsTimezoneDetect move jstz to bower management 10 years ago
marked Add marked 7 years ago
moment use moments.js min in core.js 7 years ago
select2 include lock files of bower to be able to use "bower install" 10 years ago
snapjs Force the drag to end when the navigation bar Snap is disabled by an app 7 years ago
strengthify Update strengthify and fix password strength 7 years ago
underscore update underscore to 1.8.3 9 years ago
zxcvbn [3rdparty] Bump zxcvbn 7 years ago
.gitignore Move to handlebars.min.js 7 years ago
core.js Force the drag to end when the navigation bar Snap is disabled by an app 7 years ago