Recently there is a need to achieve drag and drop function, the page right is an IFRAME page, after the chrome test passed, found in the IE8 above effect is not very ideal, finally find information that can use IE with the setcapture and releasecapture to solve.
Sidedragbar.on (' Mousedown.sidemenu ', function (e) {
this.setcapture && this.setcapture ();/ IE can use SetCapture to solve the object drag and drop problem
startdragging (e);
function Removedocumentlisteners (e) {
this.releasecapture && this.releasecapture ();// IE can use SetCapture to solve the object drag and drop problem
doc.off (' Mousemove.sidemenu ');
Doc.off (' Selectstart.sidemenu ');
Doc.off (' Mouseup.sidemenu ');
}
The above is a small set to introduce the IE8 using their own setcapture and releasecapture to solve the drag-and-drop incident method of IFrame, hope to help everyone, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!