Author Topic: not seeing drag start event  (Read 2114 times)

chrisf

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 3
    • View Profile
not seeing drag start event
« on: January 25, 2017, 11:24:34 pm »
When using pqGrid I dont see 'dragstart' events. I have tried the grid with draggable set to both true and false.

We use a cell renderer and in the html I have <img draggable='true' ondragstart='cmDragHandler(event);' src=.... > etc

but never reach cmDragHandler() when dragging a cell.

I should also mention dragging other elements on the same page - but not in the grid works okay

Any ideas?
« Last Edit: January 26, 2017, 02:43:45 am by chrisf »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: not seeing drag start event
« Reply #1 on: January 26, 2017, 06:42:48 pm »
Grid uses mouse down, move events to do selections, swipe which prevents any native mouse events like draggable.

chrisf

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: not seeing drag start event
« Reply #2 on: January 27, 2017, 08:03:26 pm »
Thanks for the quick response.

Is there anyway to work around this - we used pqgrid to display images we want to drag onto our app.

Could a div hovering above catch all events pre-grid?

Thanks