1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09:00
ladybird/Userland/Libraries/LibCards
Sam Atkins ef8b1e25aa LibCards: If dropping cards over multiple valid stacks, pick the closest
Previously, dropping a card that overlapped multiple stacks that could
accept it, would always choose the stack that came first in the stacks
list, usually the leftmost one. This would feel very odd if the card
was only slightly overlapping the left stack, and 90% over the right
one. So now, we keep looking for closer stacks even once we've found a
valid one.

There may be an option that feels even better, based on the position of
the card being dragged and the card on top of the stack we're dropping
onto, but this already fixes the issue and feels very nice. :^)
2022-10-10 16:16:01 +01:00
..
Card.cpp LibCards+Games: Rename "draw" methods to "paint" for clarity 2022-10-10 16:16:01 +01:00
Card.h LibCards+Games: Move mark_intersecting_stacks_dirty() to CardGame 2022-10-10 16:16:01 +01:00
CardGame.cpp LibCards: If dropping cards over multiple valid stacks, pick the closest 2022-10-10 16:16:01 +01:00
CardGame.h LibCards: Add support for card dragging 2022-10-10 16:16:01 +01:00
CardPainter.cpp LibCards: Remove card-back-image scaling 2022-08-22 12:50:41 +02:00
CardPainter.h LibCards: Make the card back image configurable 2022-08-22 12:50:41 +02:00
CardStack.cpp LibCards+Spider: Move ensure_top_card_is_visible() logic to CardStack 2022-10-10 16:16:01 +01:00
CardStack.h LibCards+Spider: Move ensure_top_card_is_visible() logic to CardStack 2022-10-10 16:16:01 +01:00
CMakeLists.txt LibCards: Centralise card bitmap creation 2022-08-22 12:50:41 +02:00