-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
IE iframe selection problem #2219
Comments
I do not see the problem in IE11/Win7 -- when I follow your instructions, selection seems to work fine (the editor scrolls up to the top as I drag, releasing the mouse button outside of the frame doesn't cause problems). |
I asked other developer to test that and he reproduced the issue in IE11 and also IE10, I will test at home just to make sure ins't some network issue. I will update this later with the tests results at my home pc. |
I am the other developer stated above. I confirm I can reproduce the problem on IE11, IE10 and also IE9. With the URL [http://jsbin.com/tuce/] it happens all the time on all three browsers. |
Attached patch should help with the problem of the selection going crazy. I have no idea how to fix the other problem (it is flaky, though to a lesser extent) in other browsers too. There is no way to know what the mouse is doing when it is outside of the frame that holds the editor. |
Thanks, the patch makes the selection works much better, about the scroll issue I think we can leave with that for the time been. |
Hi there,
I'm using CodeMirror in an iFrame and the mouse selection does seems to work fine.
I've added to samples in the jsBin
http://jsbin.com/tuce/ -> Simple page with a iframe
http://jsbin.com/Unuyadoh/ --> page with the CodeMirror component.
Basically the problem is: if you scroll down to the last line in the editor and try to select all lines using the mouse, the top lines who aren't visible are not select, the scroll do not goes back to the first line.. also if you release the mouse out of the iFrame, the selection start behave funny.
I cannot remove the iframe isolation for now. This is only happening on Internet Explorer, I've test in the version 11. Also test on firefox and chrome and works fine.
Thanks
The text was updated successfully, but these errors were encountered: