Interact.js: Drag and resize areas interfere with each other

Created on 24 Jan 2018  路  2Comments  路  Source: taye/interact.js

If I have an element configured as a drag handle, which overlays an area otherwise used for resizing, neither function seems to be useable in that area.

JSFiddle demo at: https://jsfiddle.net/vaj7rgt7/9/

Expected behavior

You should be able to use any part of the grey header to move the window around. The blue outline area should work to resize the box.

Actual behavior

The area of the drag handle that overlays the resizer area seems to be inactive. Only the very bottom strip of the drag handle can be used to drag.

System configuration

interact.js version: 1.3.3
Browser name and version: Chrome 63.0.3239.84 and JSFiddle
Operating System: Mac Sierra

Most helpful comment

Sorry this took so long, but you can use

interact(target).resizable({
  // 2px resizing border
  margin: 2,
});

All 2 comments

Sorry, I closed the wrong issue.

Sorry this took so long, but you can use

interact(target).resizable({
  // 2px resizing border
  margin: 2,
});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

idmadj picture idmadj  路  3Comments

Tlapi picture Tlapi  路  6Comments

itmaor picture itmaor  路  4Comments

jbaartman picture jbaartman  路  4Comments

mateop picture mateop  路  7Comments