This is a migrated thread and some comments may be shown as answers.

Drag & Drop in a Icenium application

5 Answers 40 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Hugo
Top achievements
Rank 1
Hugo asked on 12 Dec 2013, 12:21 PM
I'm using icenium for a mobile aplication using HTML5, JS,CSS and Kendo.
I manage to get it to work but the only problem that I'm having it's in centering the cursor when dragging an object, i.e., when the clone is dragged, the object is diverted. (See tha attached image)
When I user cursorOffset to put the object in the correct position, dragging becomes really slow so it is not an option. Also, editing the clone css also becomes really slow.
In the drag event, I use:
drag: function(e) {
      console.log("x: ", e.screenX, "y: ", e.screenY);
    }
This returns undefined. When I look to the object "e", the real x and y axis positions are in e.x.screen and e.y.screen. Is there a way to use this positions?


5 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 13 Dec 2013, 11:29 AM
Hello Hugo,

From the provided information it is not possible to determine what is causing this slow behavior. I have tested it on our demos, but the cursor offset does seem to making the application slow. Could you please extract a runnable sample as a showcase, that we can test locally?

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Hugo
Top achievements
Rank 1
answered on 13 Dec 2013, 04:13 PM
Here is the drag example.
0
Kiril Nikolov
Telerik team
answered on 14 Dec 2013, 02:46 PM
Hi Hugo,

Thank you very much for your example.

I can see that when the cursorOffset option is set, the draggable is performing a bit slower than without cursorOffset option set. I have logged this in our internal tracker, so we will take a look into.

Thank you very much your patience and understanding.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Hugo
Top achievements
Rank 1
answered on 07 Jan 2014, 05:23 PM
Hello Kiril,

Is there any update about this issue?
0
Kiril Nikolov
Telerik team
answered on 08 Jan 2014, 08:11 AM
Hi Hugo,

I still do not have resolution from the people responsible for this issue. As soon as I have more information about I will get back to you.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Drag and Drop
Asked by
Hugo
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Hugo
Top achievements
Rank 1
Share this question
or