mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 15:15:01 +00:00
feat: swipe to select block
Swipe also prevents scroll.
This commit is contained in:
@@ -540,6 +540,11 @@
|
||||
|
||||
.ls-block {
|
||||
@apply flex-1 relative py-0.5 transition-[background-color] mx-auto;
|
||||
width: 100%;
|
||||
transform: translateX(0);
|
||||
transition: transform 0.3s ease;
|
||||
will-change: transform;
|
||||
|
||||
container-type: inline-size;
|
||||
container-name: ls-block;
|
||||
|
||||
@@ -1141,3 +1146,7 @@ html.is-mac {
|
||||
@apply mb-2;
|
||||
}
|
||||
}
|
||||
|
||||
.swipe-item {
|
||||
touch-action: pan-y; /* disables horizontal scrolling on touch */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user