-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ie11 support #51
Comments
Could you try this again? The demo was way out of date previously. |
@STRML , thanks for checking. It still looks a bit broken with IE11 (and 10) although I no longer see errors in the javascript console. The only two blocks that can be somewhat dragged are the horizontal and vertical blocks. When dragging those, the blocks will slowly move but they do it in the wrong direction. i.e., the horizontal block only moves vertically and the vertical block only moves horizontally. |
Try it now; 0.5.0 is a more major rework and should fix a lot of On 5/1/15 10:40 AM, Dale Hille wrote:
|
@STRML , no console errors but I can't get any of them to drag |
Same here, the demo page doesn't work on on Windows 7 + IE 11.0.9600.16428, nor on surface pro + IE 11.0.9600.17728. The start event seems to be fired, but no further events. |
Took a short look, issue seems to be caused by the fact that IE 11 is detected as touch device. I think the solution is to attach mouse events and touch events (or choose which events to attach based on the event that triggered the drag start) instead of using either touch or mouse events. |
Thanks, that's helpful.
|
Found a solution or workaround, just adding the following styling seems to fix all the issues. Probably this can be set in the react component itself? The previous mentioned solution (adding both touch and mouse events), fixes the desktop versions of IE 10/11, but not when using actual touch devices. This solution seems to work correctly on all devices: .react-draggable { Also see: https://msdn.microsoft.com/en-us/library/dn433244(v=vs.85).aspx |
Interesting! Thanks! If other browsers implement pointer events they will also need this CSS, so I'll add it for all. |
thanks for the fixes, works great now ! |
:) Glad to hear it. |
Yes, for us as well! On Wed, May 20, 2015 at 4:13 PM, Samuel Reed [email protected]
|
This seems to break scrolling in Chrome on Android. |
Hi, is IE11 supported with react-draggable? I couldn't get the demo page to work when using IE11 on a windows 7 vm so I'm not sure if the demo page is just pointing to old code or if this is a general issue with react-draggable.
When dragging I saw "SCRIPT5007: Unable to get property '0' of undefined or null reference File: react-draggable.min.js, Line: 1, Column: 1805"
The text was updated successfully, but these errors were encountered: