Does the shuffler have an update() method like the scrambler if it moves? It's not in the docs when I add it it doesn't do anything.
Thanks
Does the shuffler have an update() method like the scrambler if it moves? It's not in the docs when I add it it doesn't do anything.
Thanks
The Shuffler is built on different technology and I don't think it breaks if moved. Does it?
const shuffler = new Shuffler().center()
timeout(1, ()=>{
shuffler.mov(100)
})
still works after the shift
I have it in a draggable card and when I move the card and drag the objects they have an offset as they move. It's weird, I added this simple example and it doesn't break. hmm, let me look at the code.
We will test too.
Here is a Shuffler in a Panel and so far so good... let us know if you did something different.
Just had a thought... if you just put the Shuffler in a Container then put drag on the container, the Shuffler items would potentially then just drag with the outer container's drag and mess things up. You would have to do something like this:
const holder = new Container(600,400).center().cur();
const backing = new Rectangle(holder.width, holder.height, yellow, dark)
.addTo(holder);
const shuffler = new Shuffler().center(holder);
backing.on("mousedown", ()=>{
holder.drag({all:true});
});
backing.on("pressup", ()=>{
holder.noDrag();
});