aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/draggable.js
Commit message (Collapse)AuthorAgeFilesLines
* 1.13.0-rc.31.13.0-rc.3Michał Gołębiowski-Owczarek2021-09-261-2/+2
|
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-8/+17
| | | | | Fixes #15393 Closes gh-1958
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes: * Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against * Build: Load jQuery & Migrate via HTTPS * Build: Add package-lock.json to .gitignore * Build: Update jQuery Migrate from 3.0.0 to 3.1.0 * Build: Allow to run tests against jQuery 3.x-git * Build: Fix formatting according to JSCS rules * Build: Disable JSCS for the inlined jQuery Color * All: Switch from $.isArray to Array.isArray (jQuery.isArray will be removed in jQuery 4.0) * All: Switch from `$.isFunction( x )` to `typeof x === "function"` (jQuery.isFunction will be removed in jQuery 4.0) * All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0 * Effects: Fix a timing issue in a variable declaration. Previously, a jQuery object was created, chained & assigned to a variable that was then accessed in a callback used inside of this chained definition. Due to a timing difference in when the callback fired for the first time in latest jQuery master, it was being called before the variable was defined. * Tests: Make dialog & draggable unit tests less strict (newest jQuery returns fractional results in some cases, making comparisons fail when there's a tiny difference) * All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim will be deprecated in jQuery 3.5) Closes gh-1901
* Draggable: Fix spurious blur in dialogs on mousedownRyan Oriecuia2016-09-131-6/+5
| | | | | | | | | | | | | | | | | | I was running into a problem with a popup menu control in a dialog; clicks weren't working (but keyboard was working fine). It turned out that the menu was getting destroyed before the click event could fire. Tracked down the issue to the way draggable blurs focused controls; it was doing the blur before it ran through the logic to figure out if the drag was actually on the handle. I've moved the blur below these checks, so it'll only blur things if it actually needs to handle the drag. Otherwise, it asserts no opinion on what should and shouldn't be focused, which seems like the way things ought to be. Also, added a unit test to check for the expected behavior. Fixes #15046 Closes gh-1730
* Draggable: Fix line length issuesAlexander Schmitz2016-04-131-78/+203
| | | | Ref gh-1690
* Draggable: Improve detection for when to blur the active elementScott González2016-02-091-4/+9
| | | | | | Fixes #12472 Fixes #14905 Closes gh-1548
* All: Fix manifest issues for categories and CSS dependenciesJörn Zaefferer2015-10-231-1/+1
| | | | | | | Collapses "UI Core" and "Core" into just "Core". Fixes bad paths for CSS dependencies. Regressed when moving widgets into the widgets subfolder.
* Mouse: Don't stop propagation of mouseupHannah Methvin2015-10-181-2/+2
| | | | Fixes #10818
* Draggable: Remove redundant handling of disabled class on createJörn Zaefferer2015-09-251-3/+0
| | | | | | | _setOptionDisabled in $.Widget is now handling that. Ref #9151 Ref gh-1599
* Draggable: Style updatesAlexander Schmitz2015-09-111-193/+201
| | | | Ref #14246
* Draggable: Style updatesAlexander Schmitz2015-08-211-6/+6
| | | | | Ref #14246 Ref gh-1588
* Mouse: Move mouse into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Draggable: Move draggable into widgets folderAlexander Schmitz2015-08-081-0/+1116
Ref #13885