1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
Commit graph

19 commits

Author SHA1 Message Date
Thomas Walpole
3f7c358564 minor code cleanup 2022-05-09 14:37:08 -07:00
Thomas Walpole
e62a194a68 Drop modifiers shouldn't be held down at drag start 2020-01-25 11:04:45 -08:00
Thomas Walpole
55f8304d1a Minor fixups in drag modifiers and change option name 2020-01-14 09:51:15 -08:00
Elliot Crosby-McCullough
7c3d4107a5 Support held modifier keys in drag & drop
Supports :alt, :ctrl, :meta, and :shift.
2020-01-14 09:51:15 -08:00
nickgnd
ff43b4757a Preserve clientX/clientY across all the DnD events
Propagate down the `dragOverOpts` object which contains the `clientX` and `clientY`
coordinates to the following DnD events (`dragleave`, `drop`,
`dragend`) in order to drop the source in the correct position and not
in the top-left corner (0,0).

Co-authored-by: klappradla <max@bitcrowd.net>
2019-11-14 13:05:18 +01:00
Thomas Walpole
f2f31f6965 Allow forcing HTML5 or legacy dragging when using Selenium driver with drag_to 2019-07-30 17:06:31 -07:00
Thomas Walpole
de62b4ff9b Treat not seeing the mousedown event the same as it being default prevented 2019-07-30 11:36:28 -07:00
Thomas Walpole
b9d1b8f3a4 HTML5 draggable elements shold be draggable from their children 2019-06-27 14:21:43 -07:00
Thomas Walpole
c053ff60de Workaround Chrome issue with mouse button state when dragging 2019-06-26 15:40:42 -07:00
Thomas Walpole
9ae7d749f2 Support driver specific options for drag_to 2019-06-09 09:12:20 -07:00
Thomas Walpole
17baa4f5de Change Selenium HTML5 DND emulation to work with SortableJS 2019-06-08 14:58:37 -07:00
Thomas Walpole
320ee96bb8 Minor rubocop changes [ci skip] 2019-05-30 15:07:27 -07:00
Thomas Walpole
94f7f8881a Simulate file/external data drop in chrome and firefox and move HTML5 drag/drop tests into shared tests 2019-05-17 16:05:41 -07:00
Thomas Walpole
a752600333 Workaround rubocop bug 2019-03-26 10:55:38 -07:00
Thomas Walpole
8930306e2f Set first dragover clientX/Y to target entry location in HTML5 drag drop emulation 2019-01-25 21:13:18 -08:00
Erkki Eilonen
c8ca3e3f17 Add clientY/clientX to html5 drag and drop dragover events and fire 2 of them to simulate directional dragging 2019-01-25 21:13:18 -08:00
Thomas Walpole
7dc2a703ed cleanup mousedown tracker 2018-09-12 15:12:52 -07:00
Thomas Walpole
18a7516de8 Use property instead of execute_script 2018-09-12 10:02:15 -07:00
Thomas Walpole
195930d900 Only enable HTML5 dragging if default is not prevented on the mousedown event 2018-09-11 21:49:29 -07:00