studio: shuffling slides sometimes does not work
peterpeterparker opened this issue · 10 comments
Affected part of DeckDeckGo
- Studio (online editor)
Feature Description
Changing the ordering of the slides does not work sometimes.
I tried to reproduce the issue but, couldn't.
Therefore, Iif anyone can provide an accurate description on the cases which lead to the issue, that would help a lot!
Screenshots
@peterpeterparker Hey! I'd like to have a look at that one 😉 Not sure if I'll find it, but trying never hurts 😄
That would be awesome @zh-betina 👍
I did not manage to reproduce it but, I am sure the bug exists.
If you can manage to track it down, code wise, the bug might be in updateDeckSlidesOrder
Keep me posted and thx!
@peterpeterparker I'm not sure if I found exactly the same issue as yours, however, there is a problem with changing an order of slides, if you drag one of the elements on the list of slides too much down to the bottom. It sort of blocks the dragging event, can't drag anything anymore after and if you get off the list/click anywhere else, and go back to the list of slides, it turns out the order didn't change. Not sure if I'm clear here but just try to take any element from the list of slides, drag it as if you wanted to move it to the last position and if you do it fast and "to the max", it won't change the order.
Haven't checked it codewise yet. Please, let me know if that could be the issue you were referring to. If it's not clear enough, I'll try to record the screen!
I used Chrome browser on Windows.
thanks for the analysis and feedback @zh-betina
it might be the issue indeed, actually I don't have more information than "it doesn't work sometimes".
no need of screencast, I was able to reproduce the issue too. spontaneously I would say that it is not an issue with our code but maybe a bug of the Ionic reorder component we are using.
do you want to have a look?
@peterpeterparker Yes! 'd like to get more familiar with the project from the code side and help with more things if my skills allow (sooner or later :)), so I'll be happy to have a look!
Awesome! Go for it, ping me if you have any questions and thx 🙏
@peterpeterparker Hey, I followed the steps:
git clone https://github.com/deckgo/deckdeckgo
cd deckdeckgo/studio
npm install
npm run start
but that's the result I got on npm start
Is it something common and I missed something?
@zh-betina are you on Windows? another contributor, Christian, had the same issue yesterday with the docs and we came to the conclusion that was the reason
to solve the error I think it might need the rollup-plugin-node-polyfills
as displayed in the Stencil doc https://stenciljs.com/docs/module-bundling chapter "Node Polyfills "
-
npm install rollup-plugin-node-polyfills --save-dev
-
add
import nodePolyfills from 'rollup-plugin-node-polyfills';
and
rollupPlugins: {
after: [
nodePolyfills(),
]
}
Can you give it a try? If it work out we can add it generally to our apps.
@peterpeterparker Yes, I tried it on Windows, did as you recommended and it's working! Thanks a lot.
I'll be back soon with a more issue-related bug content (I hope 😄 ).
nice cool to hear it worked out. maybe at some point we should think about adding it...
looking forward to your feedback about the issue!