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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
81 | [React.JS] 강좌 목록 | 황제낙엽 | 2020.05.19 | 222 |
80 |
Redux: React 앱의 효율적인 데이터 교류
![]() | 황제낙엽 | 2020.05.19 | 819 |
79 | Jasmine 관련 | 황제낙엽 | 2020.01.13 | 319 |
» | 마우스 드래그(drag)시 iframe 위에서 컨트롤 잃는 현상과 해결 방안 | 황제낙엽 | 2017.12.12 | 24758 |
77 | 다섯 가지의 Ajax 우수 사례 | 황제낙엽 | 2011.04.07 | 309 |
76 | 15+ jQuery Popup Modal Dialog Plugins and Tutorials | 황제낙엽 | 2011.03.30 | 369 |
75 |
$.ajax() 공략
![]() | 황제낙엽 | 2011.03.27 | 502 |
74 | DWR을 이용해서 객체를 JSON으로 변환하기 | 황제낙엽 | 2011.03.25 | 143 |
73 |
json을 이용한 로그인 구현
![]() | 황제낙엽 | 2011.03.25 | 678 |
72 | How Prototype extends the DOM (Prototype으로 DOM을 확장하는 법) | 황제낙엽 | 2011.03.24 | 537 |
71 | 스크랩 | 황제낙엽 | 2009.04.16 | 223 |
70 | YUI 스크랩 | 황제낙엽 | 2009.03.12 | 143 |
69 | 스크랩 | 황제낙엽 | 2009.03.11 | 137 |
68 | 관심 사이트 | 황제낙엽 | 2009.03.12 | 232 |
67 | 웹 개발 패러다임의 전환 - Flex와 Ajax의 동거 | 황제낙엽 | 2006.12.21 | 234 |
66 | Ajax 강의 정리 | 황제낙엽 | 2006.04.04 | 180 |
65 | 자바 기술을 이용한 AJAX의 활용 | 황제낙엽 | 2006.02.08 | 153 |
64 |
대표적인 AJAX Framework 소개
![]() | 황제낙엽 | 2007.02.14 | 228 |
63 | Ajax Framework 인기 순위: Ajaxian.com | 황제낙엽 | 2007.02.13 | 167 |
62 |
prototype.js 를 위한 개발자 노트 (Ajax Framework)
![]() | 황제낙엽 | 2007.02.15 | 124 |