prevent an sub area in a draggable area to detect dragging event

J

Jim

I have a div V contains two areas: a header area A and a body area B.

The div is set to be a dragSource but I want to allow the V to be
dragged
only when users drag the header. That is, V won't move when users
try to drag it by mouse down on B and move mouse.

I tried to use cancelBubble at B to block drag related events bubble to
V when users
drag B. I had try ondrag ondragstart and onselectstart and also set
canCancelBubble true.
But all failed to stop the dragging events from being passing to V.

Any suggestions?

thank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top