I used a Google map in my site, and the container div which contains the map is draggable. Now my problem is that when I scroll the map, it also drags. I want to stop dragging when of map scrolling. How can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Can you provide more detail? If the google map fully fills your div, how do you plan to drag the div? If it does not fully fill the div (say there is a border around the map), then in the mouseDown you can check the sender is the div and not the map. Then you can move the map by dragging the map, or the div and map by dragging the border.