Answered by:
prevent img from bring dragged by mouse

Question
-
I gave an absolute positioned img element that I don't want to be draggable. Is there a special style I need to apply?Friday, April 4, 2014 5:46 PM
Answers
-
Does setting draggable="false" work for you?
http://www.w3schools.com/tags/att_global_draggable.asp
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.- Marked as answer by Matt SmallMicrosoft employee, Moderator Sunday, April 6, 2014 2:32 AM
Friday, April 4, 2014 7:24 PMModerator
All replies
-
Does setting draggable="false" work for you?
http://www.w3schools.com/tags/att_global_draggable.asp
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.- Marked as answer by Matt SmallMicrosoft employee, Moderator Sunday, April 6, 2014 2:32 AM
Friday, April 4, 2014 7:24 PMModerator -
Thanks, Matt, it does work with that attribute. Does the WinJS Listview set this to its items too by default?Friday, April 4, 2014 8:48 PM
-
In the documentation I sent to you is this:
The draggable attribute specifies whether an element is draggable or not.
Tip: Links and images are draggable by default.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.Friday, April 4, 2014 9:44 PMModerator