question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

allowFrom doesn't work when manualStart is on

See original GitHub issue

https://jsfiddle.net/ddenev/fvzy6mjh/

What is the proper way to specify a handle when manualStart is on then?

@taye , please don’t ignore this and the ‘cursorChecker’ (https://github.com/taye/interact.js/issues/844) questions - I am currently blocked and need assistance/resolution.

Thank you and best regards.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nayfincommented, Nov 14, 2020

@ddenev I moved my clone logic into the dragstart event and removed the manualStart and interaction.start({..}) stuff. This has the advantage of preserving my drag config (allowFrom, cursor #844 , etc…). The disadvantage that my clone isn’t associated as the event.target for drag events or the event.relatedTarget for drop events, these properties are associated to the original drag item (the trigger if you will). I’m assuming this the reason @taye made the manualStart functionality, so that you could associate the clone as your drag item. I get around this by adding the properties I need to the element that is being dragged and reference those properties instead of target and relatedTarget. #shamelessPlug Additionally, I’m adding this functionality to an Angular drag drop library I have published @tft/interact. Interactive docs here. I should be able to release the new feature and update docs with example by tonight or tomorrow.

0reactions
tayecommented, Aug 9, 2020

The proper way is to check yourself if you want to start the action from the target element. You can use that interactable.testIgnoreAllow() method to check if the allowFrom and ignoeFrom options that you set should allow the action (true) or not (false) before calling interaction.start()

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interact.js resizable and draggable not working together
draggable({ manualStart: false, allowFrom: '.handle-rotate', onstart: function (event) { console.log('onstart ...
Read more >
Common Action Options - interact.js
The allowFrom option lets you specify a target CSS selector or Element which must be the target of the pointer down event in...
Read more >
taye/interact.js - Gitter
i am using interact.js to drag and drop, scale and rotate elements. the problem is when i scale or rotate element, it will...
Read more >
taye - Profile - Bountysource
taye commented on this issueallowFrom doesn't work when manualStart is on. interact.js 2 years ago. taye commented on this issueDocs: "Intro" page produces ......
Read more >
OE8 + WSGI : CRON Not working - Odoo
Issue: https://github.com/odoo/odoo/issues/3091 I am struggling to make cron/scheduler working in Openerp/ Odoo 8 with mod_wsgi First I had problem with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found