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
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