Explore the community Forums Lectora Online Lectora Online Questions & Answers JQuery UI draggable/droppable not working in responsive Reply To: JQuery UI draggable/droppable not working in responsive

#366349 Score: 2
Profile photo of Robert Aung-Naing
Robert Aung-Naing
Member
beginner
intermediate
friend finder
profile
wise owl
contributor
19 pts
@raungnaing

The issue is that the swipe library Hammer is conflicting with the jQuery draggable. Hammer gets included and initialized by default for RCD titles. Also in non-RCD titles, if you have swipe actions draggable will not work either.

To fix this you can disable Hammer in non-mobile environment by adding the following code in HTML extension type “Header Scripting” which will override the init function with an empty function.

if ( !isMobile.any() )
  initGEV = function() {}

For Lectora Inspire/Publisher users:

if ( !is.isMobile.any() )
  initGEV = function() {}
This post has received 2 votes up.