Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
JQuery droppable doesn't detect drop events after applying rotation

I am applying droppable to rotated element.

Fiddle

The droppable events are getting triggered on the area prior to rotation and it does not get triggered on actual rotated element.

HTML

<div id="droppable">Drop here</div>
<div id="draggable">Drag me</div>

CSS

#draggable {
    width: 40px;
    height: 40px;
    background: #ccc;
}
#droppable {
    position: absolute;
    left: 250px;
    top: 80px;
    width: 225px;
    height: 35px;
    background: #999;
    color: #fff;
    padding: 10px;
    transform-origin:center;
    transform: rotate(45deg);
}

Javascript

$( "#draggable" ).draggable();
$( "#droppable" ).droppable({
  drop: function() {
    alert( "dropped" );
  }
});

Thanks.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!