Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Unexpetected CLICK event triggered

    Version:
    SNAPSHOT_v10.1d_2014-11-12/LGPL Deployment
    Also tested on your web site
    10.0/SDK Development Only (expires ) Licensed to: Isomorphic Software (#ISCDocs)

    Browsers:
    IE11, FF36.0, CHROME40.0

    Scenario:
    I've some widgets that can be dragged repositorion on a layout and when user clicks on them a new dialog is displayed (Like shortcuts).
    I was trying to cancel reposition when user drop this widgets on another existing widget

    Problem:
    The cancel of the reposition works right (return false on dragRepositionStop), but when it's cancelled the click event is triggered unexpectedly.
    When its not cancelled (return true on dragRepositionStop) the click event is not trigered

    Sample code:
    Code:
    isc.Img.create({
        left:100, top:50,
        width:48, height:48,
        src: "pieces/48/pawn_blue.png",
        canDragReposition: true,
        keepInParentRect: true,
        dragAppearance: "target",
        click: "isc.say('Why click event is fired?')",
       dragRepositionStop: "/*Here goes my code for cancel reposition*/ return false;"
    })
    Log Stack (DEBUG level for EventHandler) note that there is a Event 'click' bubbled to top after Bubbling for event 'dragRepositionStop' cancelled via.

    Global Log Priorities updated: Logging messages at priority 'Debug' and above for category 'EventHandler'.
    16:31:37.158:KUP3:INFO:EventHandler:keyUp event with Canvas target: null, native target: [BODYElement]{nodeName:BODY}
    16:31:37.833:MMV5:DEBUG:EventHandler:mousing out of [Canvas ID:featureExplorer_exampleViewer_exampleViewPane_viewContainer] mousing over [Img ID:isc_Img_1]
    16:31:38.053:MDN3:INFO:EventHandler:Target Canvas for event 'mousedown': [Img ID:isc_Img_1]
    16:31:38.061:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[Img ID:isc_Img_1]' has handler: Canvas.prepareForDragging()
    16:31:38.062:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[Canvas ID:featureExplorer_exampleViewer_exampleViewPane_viewContainer]' has handler: Canvas.prepareForDragging()
    16:31:38.062:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[ExampleViewPane ID:featureExplorer_exampleViewer_exampleViewPane]' has handler: Canvas.prepareForDragging()
    16:31:38.063:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[PaneContainer ID:featureExplorer_exampleViewer_paneContainer]' has handler: Canvas.prepareForDragging()
    16:31:38.063:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[ExampleViewer ID:featureExplorer_exampleViewer]' has handler: Canvas.prepareForDragging()
    16:31:38.064:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[SectionStack ID:featureExplorer_examplePage]' has handler: Canvas.prepareForDragging()
    16:31:38.064:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[Canvas ID:featureExplorer_centerPane]' has handler: Canvas.prepareForDragging()
    16:31:38.065:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[VLayout ID:featureExplorer_leftSuperPane_rightLayout]' has handler: Canvas.prepareForDragging()
    16:31:38.065:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[SplitPane ID:featureExplorer_leftSuperPane]' has handler: Canvas.prepareForDragging()
    16:31:38.066:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[HLayout ID:featureExplorer_topPane]' has handler: Canvas.prepareForDragging()
    16:31:38.066:MDN3:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[FeatureExplorer ID:featureExplorer]' has handler: Canvas.prepareForDragging()
    16:31:38.067:MDN3:DEBUG:EventHandler:Event 'prepareForDragging' bubbled to top
    16:31:38.068:MDN3:DEBUG:EventHandler:Event 'mouseDown' bubbled to top
    16:31:38.144:MMV7:DEBUG:EventHandler:Bubbling event 'dragRepositionStart', target '[PaneContainer ID:featureExplorer_exampleViewer_paneContainer]' has handler: Layout.dragRepositionStart()
    16:31:38.144:MMV7:DEBUG:EventHandler:Bubbling event 'dragRepositionStart', target '[SectionStack ID:featureExplorer_examplePage]' has handler: Layout.dragRepositionStart()
    16:31:38.145:MMV7:DEBUG:EventHandler:Bubbling event 'dragRepositionStart', target '[VLayout ID:featureExplorer_leftSuperPane_rightLayout]' has handler: Layout.dragRepositionStart()
    16:31:38.145:MMV7:DEBUG:EventHandler:Bubbling event 'dragRepositionStart', target '[SplitPane ID:featureExplorer_leftSuperPane]' has handler: Layout.dragRepositionStart()
    16:31:38.145:MMV7:DEBUG:EventHandler:Bubbling event 'dragRepositionStart', target '[HLayout ID:featureExplorer_topPane]' has handler: Layout.dragRepositionStart()
    16:31:38.145:MMV7:DEBUG:EventHandler:Bubbling event 'dragRepositionStart', target '[FeatureExplorer ID:featureExplorer]' has handler: Layout.dragRepositionStart()
    16:31:38.146:MMV7:DEBUG:EventHandler:Event 'dragRepositionStart' bubbled to top
    16:31:38.148:MMV7:DEBUG:EventHandler:Event 'dragRepositionMove' bubbled to top
    16:31:38.157:MMV9:DEBUG:EventHandler:Event 'dragRepositionMove' bubbled to top
    16:31:38.163:MMV1:DEBUG:EventHandler:Event 'dragRepositionMove' bubbled to top
    16:31:38.177:MMV3:DEBUG:EventHandler:Event 'dragRepositionMove' bubbled to top
    16:31:38.208:MMV6:DEBUG:EventHandler:Event 'dragRepositionMove' bubbled to top
    16:31:38.219:MMV9:DEBUG:EventHandler:Event 'dragRepositionMove' bubbled to top
    16:31:38.237:MMV1:DEBUG:EventHandler:Event 'dragRepositionMove' bubbled to top
    16:31:38.244:MMV3:DEBUG:EventHandler:Event 'dragRepositionMove' bubbled to top
    16:31:38.254:MMV5:DEBUG:EventHandler:Event 'dragRepositionMove' bubbled to top
    16:31:38.467:MUP7:INFO:EventHandler:Target Canvas for event 'mouseup': [Img ID:isc_Img_1]
    16:31:38.469:MUP7:DEBUG:EventHandler:Bubbling event 'dragRepositionStop', target '[Img ID:isc_Img_1]' has handler: [o]Img.dragRepositionStop()
    16:31:38.470:MUP7:DEBUG:EventHandler:Bubbling for event 'dragRepositionStop' cancelled via false return value by target: [Img ID:isc_Img_1]
    16:31:38.562:MUP7:DEBUG:EventHandler:Event 'click' bubbled to top
    16:31:38.563:MMV1:DEBUG:EventHandler:mousing over [Layout ID:isc_globalWarn_body]
Working...
X