mirror of
https://github.com/flarum/core.git
synced 2025-02-25 11:43:19 +01:00
Fix swiping to the right to mark as read
This commit is contained in:
parent
c789d0aef2
commit
7a67d3ab95
@ -93,7 +93,7 @@ export default function slidable(element) {
|
||||
if ($underneath.length) {
|
||||
const active = side === 'left' ? pos > 0 : pos < 0;
|
||||
|
||||
if (active && $underneath.hasClass('elastic')) {
|
||||
if (active && $underneath.hasClass('Slidable-underneath--elastic')) {
|
||||
pos -= pos * 0.5;
|
||||
}
|
||||
$underneath.toggle(active);
|
||||
@ -126,7 +126,7 @@ export default function slidable(element) {
|
||||
const activate = $underneath => {
|
||||
$underneath.click();
|
||||
|
||||
if ($underneath.hasClass('elastic')) {
|
||||
if ($underneath.hasClass('Slidable-underneath--elastic')) {
|
||||
reset();
|
||||
} else {
|
||||
animatePos((pos > 0 ? 1 : -1) * $element.width());
|
||||
|
Loading…
x
Reference in New Issue
Block a user