Skip to content

Blancer.com Tutorials and projects

Freelance Projects, Design and Programming Tutorials

  • Video
  • tutplus
  • Themes
  • graphics
  • code
  • Audio
  • 3d
  • Featured Projects
    • Wow Projects
  • News
    • Fiverr Clone
    • Kickstarter-clone
    • Tech news
  • Contact us
    • Report a Page!

Detect if drag is over other element in KonvaJS

Is there a way in KonvaJS to somehow detect when the RED box is dragged over the BLUE box?

Codesandbox: https://codesandbox.io/s/jolly-cloud-u5m9x1?file=/src/App.js

rect1.on('dragend', (evt) => {
  console.log(evt); // detect if dragging is over the rect2 (blue one)
});

enter image description here

Author BlancerPosted on 2023/03/18Categories javascript

Post navigation

Previous Previous post: How to access it the persistence variable in authentication on firebase v9 react.js?
Next Next post: User’s username not appearing on React navigation bar

Search

Cryptocurrency Exchange Script

 Cryptocurrency Exchange Script Binance Clone

Kickstarter Clone

Kickstarter Clone

Crowdfunding software


Groupon Clone

groupon clone script

  • Telegram Channel
  • Video
  • tutplus
  • Themes
  • graphics
  • code
  • Audio
  • 3d
  • Featured Projects
    • Wow Projects
  • News
    • Fiverr Clone
    • Kickstarter-clone
    • Tech news
  • Contact us
    • Report a Page!
Blancer.com Tutorials and projects