mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
Fix swiping to the right to mark as read
This commit is contained in:
parent
5d9db2744e
commit
c5fd4418fb
|
@ -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…
Reference in New Issue
Block a user