Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to click and drag an entity made up of other entities #19

Open
pubaayaam opened this issue Jul 18, 2017 · 3 comments
Open

Not able to click and drag an entity made up of other entities #19

pubaayaam opened this issue Jul 18, 2017 · 3 comments

Comments

@pubaayaam
Copy link

@jesstelford @ngokevin I have created a dice entity from six plane entities. However, when I click and drag the dice entity, instead of moving that dice, only one sided face gets dragged.
This can be tried hands on at link http://shrouded-chamber-73425.herokuapp.com/

@andreiciungan
Copy link

Any news regarding this issue?

@pubaayaam
Copy link
Author

It does not work actually

@bknill
Copy link

bknill commented Feb 5, 2018

I got round it with this

   setAttributeFamily(el,'click-drag',true)

    function setAttributeFamily(el,attribute,value){
      el.setAttribute(attribute,value)
      const children = [].slice.call(el.children)
      children.forEach((child)=> child.setAttribute(attribute, value))
      if(el.parentNode.classList.contains('hotspot'))
        el.parentNode.setAttribute(attribute, value)
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants