Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mastofe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pleroma
mastofe
Commits
072158ee
Commit
072158ee
authored
5 years ago
by
ThibG
Committed by
Eugen Rochko
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix swiping columns on mobile sometimes failing (#11200)
Fixes #9779
parent
ca894472
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/javascript/mastodon/features/ui/components/columns_area.js
+5
-1
5 additions, 1 deletion
...avascript/mastodon/features/ui/components/columns_area.js
with
5 additions
and
1 deletion
app/javascript/mastodon/features/ui/components/columns_area.js
+
5
−
1
View file @
072158ee
...
...
@@ -110,6 +110,11 @@ class ColumnsArea extends ImmutablePureComponent {
// React-router does this for us, but too late, feeling laggy.
document
.
querySelector
(
currentLinkSelector
).
classList
.
remove
(
'
active
'
);
document
.
querySelector
(
nextLinkSelector
).
classList
.
add
(
'
active
'
);
if
(
!
this
.
state
.
shouldAnimate
&&
typeof
this
.
pendingIndex
===
'
number
'
)
{
this
.
context
.
router
.
history
.
push
(
getLink
(
this
.
pendingIndex
));
this
.
pendingIndex
=
null
;
}
}
handleAnimationEnd
=
()
=>
{
...
...
@@ -160,7 +165,6 @@ class ColumnsArea extends ImmutablePureComponent {
const
{
shouldAnimate
}
=
this
.
state
;
const
columnIndex
=
getIndex
(
this
.
context
.
router
.
history
.
location
.
pathname
);
this
.
pendingIndex
=
null
;
if
(
singleColumn
)
{
const
floatingActionButton
=
shouldHideFAB
(
this
.
context
.
router
.
history
.
location
.
pathname
)
?
null
:
<
Link
key
=
'
floating-action-button
'
to
=
'
/statuses/new
'
className
=
'
floating-action-button
'
aria
-
label
=
{
intl
.
formatMessage
(
messages
.
publish
)}
><
Icon
id
=
'
pencil
'
/><
/Link>
;
...
...
This diff is collapsed.
Click to expand it.
Haelwenn
@lanodan
mentioned in commit
4d964398
·
5 years ago
mentioned in commit
4d964398
mentioned in commit 4d964398dede71a0512430d904951cff2c7f58c5
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment