diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2017-05-11 14:36:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-11 14:36:27 +0300 |
commit | f72ac12fd257e218c370a4d686be4cc99c2a22d6 (patch) | |
tree | df7937c1835dcd6517717332147cae383a27c05c /all/src | |
parent | e2e3058a497f43f34f2fcfadf6b63de9211be659 (diff) | |
download | vaadin-framework-f72ac12fd257e218c370a4d686be4cc99c2a22d6.tar.gz vaadin-framework-f72ac12fd257e218c370a4d686be4cc99c2a22d6.zip |
Add mobile html5 dnd support using polyfill (#9282)
First step of mobile DND support.
- Add mobile html5 dnd support using polyfill
- Adds a switch for enabling mobile html5 dnd support
- Adds polyfill only when needed
- Ignore native Android Chrome drag start because doesn't work properly
(no dragend event fired)
- Add documentation on enabling mobile HTML5 DnD support
- Add mention of drag-drop-polyfill license
- Fixed issue in polyfill when not using "snapback"
- Add mention of forked polyfill
Fixes #9174
Diffstat (limited to 'all/src')
-rw-r--r-- | all/src/main/resources/WebContent/license.html | 8 | ||||
-rw-r--r-- | all/src/main/resources/WebContent/licenses/bsd-2-clause-drag-drop-polyfill.txt | 9 |
2 files changed, 16 insertions, 1 deletions
diff --git a/all/src/main/resources/WebContent/license.html b/all/src/main/resources/WebContent/license.html index fe37813e57..b051865193 100644 --- a/all/src/main/resources/WebContent/license.html +++ b/all/src/main/resources/WebContent/license.html @@ -188,11 +188,17 @@ <td>Bourbon</td> <td><a href="licenses/the-mit-license.txt">The MIT License</a></td> </tr> + <tr> + <td><a href="https://github.com/timruffles/ios-html5-drag-drop-shim">drag-drop-polyfill</a>**</td> + <td><a href="licenses/bsd-2-clause-drag-drop-polyfill.txt">BSD-2-clause</a></td> + </tr> </tbody> </table> <p>* Not required by Vaadin, only used if provided by the user.<br/> -^ Only if <tt>vaadin-push</tt> is used.</p> +^ Only if <tt>vaadin-push</tt> is used.<br/> +** Used only when mobile drag and drop is enabled. +</p> <h4>Vaadin Development Dependencies</h4> diff --git a/all/src/main/resources/WebContent/licenses/bsd-2-clause-drag-drop-polyfill.txt b/all/src/main/resources/WebContent/licenses/bsd-2-clause-drag-drop-polyfill.txt new file mode 100644 index 0000000000..36eea63972 --- /dev/null +++ b/all/src/main/resources/WebContent/licenses/bsd-2-clause-drag-drop-polyfill.txt @@ -0,0 +1,9 @@ +Copyright (c) 2013 Tim Ruffles + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |