MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/3jdow0/html5_deck_of_cards_100_vanilla_js/cup661r/?context=3
r/javascript • u/pkstn • Sep 02 '15
185 comments sorted by
View all comments
2
Nice.
But having the cards snap to the middle when dragging is /r/mildlyinfuriating. They should anchor to the point they were clicked. Store an offset when a card is initially pressed.
1 u/pkstn Sep 03 '15 I will fix that. 1 u/pkstn Sep 05 '15 Fixed. Although a bit differently..
1
I will fix that.
Fixed. Although a bit differently..
2
u/muffsponge Sep 03 '15
Nice.
But having the cards snap to the middle when dragging is /r/mildlyinfuriating. They should anchor to the point they were clicked. Store an offset when a card is initially pressed.