sitelink1 | |
---|---|
sitelink2 | |
sitelink3 | |
extra_vars4 | |
extra_vars5 | |
extra_vars6 |
QUESTION : https://github.com/ducksboard/gridster.js/issues/268
SOLUTION : https://www.cocept.io/blog/development/gridster-breaks-iframe-drag-drop/
This is a common problem with drag and drop, and can be fixed relatively easily by covering your iframe with a transparent element that is hidden by default. When the drag starts, the element is shown. When the drag stops, the element is hidden.
- Add the following HTML to each <li> widget:
- Add the following CSS to the <head> element of your page
- Change your Gridster instantiation javascript to specify the overlay_fix_start and overlay_fix_stop functions for the draggable.startand draggable.stop events:
Now when you start dragging an element, the entire <li> is covered with a full size transparent <div> that covers the mouse over event of the iframe and your drag should never stop, even if you mouse over the location of the iframe.
QUESTION : https://stackoverflow.com/questions/14698419/preserve-iframe-content-on-drag
SOLUTION : http://jsfiddle.net/5QL7W/27/
내용이 너무 많아서 생략
QUESTION : https://stackoverflow.com/questions/30842870/jquery-ui-dragging-over-iframe-lost-the-drag
SOLUTION : http://jsfiddle.net/m9kveakv/10/
<h3>Pick a number on the SIDE MENU and drag t inside the iframe. Then make a fast drag (in order the mouse goes out the number div area)</h3>
<div class="container">
<div class="side-menu">
SIDE MENU
<ul id="draggable">
<li class="ui-state-default">1</li>
<li class="ui-state-default">2</li>
<li class="ui-state-default">3</li>
<li class="ui-state-default">4</li>
<li class="ui-state-default">5</li>
</ul>
</div>
<div class="content">
<iframe src="http://www.w3schools.com"></iframe>
</div>
</div>
$(function() {
$( "#draggable li" ).draggable({
revert: true,
iframeFix: true
});
});
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
» | 마우스 드래그(drag)시 iframe 위에서 컨트롤 잃는 현상과 해결 방안 | 황제낙엽 | 2017.12.12 | 24755 |
6 | 15+ jQuery Popup Modal Dialog Plugins and Tutorials | 황제낙엽 | 2011.03.30 | 368 |
5 |
$.ajax() 공략
![]() | 황제낙엽 | 2011.03.27 | 502 |
4 |
json을 이용한 로그인 구현
![]() | 황제낙엽 | 2011.03.25 | 678 |
3 | 스크랩 | 황제낙엽 | 2009.04.16 | 223 |
2 | jQuery Event 객체 정보 | 황제낙엽 | 2009.05.02 | 129 |
1 | jQuery로 Ajax 개발을 단순화 하기 | 황제낙엽 | 2009.04.16 | 151 |