Issue #2500💬 AnsweredOpened January 9, 2020by ramusesan1 reactions

Events are not firing in translate DragMode

快速解答by artf1

Actually, we've never provided a listener for a component during the drag, but I can think about adding it in the next release (eg. component:drag:start, component:drag, component:drag:end)

Read full answer below ↓

Question

am using npm : "grapesjs": "^0.15.10", and dragMode: translate

added events

editor.on('block:drag', () => {
  console.log('Triggered')
})

but this is working only default drag mode, not in translate drag mode. how get I fix this

Answers (3)

artfJanuary 21, 2020

Actually, we've never provided a listener for a component during the drag, but I can think about adding it in the next release (eg. component:drag:start, component:drag, component:drag:end)

ramusesanJanuary 13, 2020

@artf no it does'nt working see the Demo below, i am not getting any console over there. am using chrome Version 79.0

Untitled_ Jan 13 2020 10_59 AM

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.