Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
6f557c19
Commit
6f557c19
authored
4 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Optimize scrolling a little bit
parent
cbb4356b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
resources/qml/MatrixText.qml
+0
-3
0 additions, 3 deletions
resources/qml/MatrixText.qml
resources/qml/ScrollHelper.qml
+1
-1
1 addition, 1 deletion
resources/qml/ScrollHelper.qml
resources/qml/TimelineView.qml
+24
-25
24 additions, 25 deletions
resources/qml/TimelineView.qml
with
25 additions
and
29 deletions
resources/qml/MatrixText.qml
+
0
−
3
View file @
6f557c19
...
...
@@ -8,9 +8,6 @@ TextEdit {
selectByMouse
:
true
color
:
colors
.
text
font.hintingPreference
:
Font
.
PreferFullHinting
renderType
:
Text
.
NativeRendering
onLinkActivated
:
{
if
(
/^https:
\/\/
matrix.to
\/
#
\/(
@.*
)
$/
.
test
(
link
))
chat
.
model
.
openUserProfile
(
/^https:
\/\/
matrix.to
\/
#
\/(
@.*
)
$/
.
exec
(
link
)[
1
])
else
if
(
/^https:
\/\/
matrix.to
\/
#
\/(
!
[^\/]
*
)
$/
.
test
(
link
))
timelineManager
.
setHistoryView
(
/^https:
\/\/
matrix.to
\/
#
\/(
!.*
)
$/
.
exec
(
link
)[
1
])
...
...
This diff is collapsed.
Click to expand it.
resources/qml/ScrollHelper.qml
+
1
−
1
View file @
6f557c19
...
...
@@ -106,6 +106,6 @@ MouseArea {
//How long the scrollbar will remain visible
interval
:
500
// Hide the scrollbars
onTriggered
:
flickable
.
cancelFlick
();
onTriggered
:
{
flickable
.
cancelFlick
();
flickable
.
movementEnded
();
}
}
}
This diff is collapsed.
Click to expand it.
resources/qml/TimelineView.qml
+
24
−
25
View file @
6f557c19
...
...
@@ -27,16 +27,16 @@ Page {
id
:
fontMetrics
}
EmojiPicker
{
id
:
emojiPopup
width
:
7
*
52
+
20
height
:
6
*
52
colors
:
palette
model
:
EmojiProxyModel
{
category
:
EmojiCategory
.
People
sourceModel
:
EmojiModel
{}
}
}
EmojiPicker
{
id
:
emojiPopup
width
:
7
*
52
+
20
height
:
6
*
52
colors
:
palette
model
:
EmojiProxyModel
{
category
:
EmojiCategory
.
People
sourceModel
:
EmojiModel
{}
}
}
Menu
{
id
:
messageContextMenu
...
...
@@ -114,7 +114,7 @@ Page {
ListView
{
id
:
chat
visible
:
!!
timelineManager
.
timeline
visible
:
!!
timelineManager
.
timeline
cacheBuffer
:
400
...
...
@@ -206,14 +206,13 @@ Page {
}
}
Binding
{
target
:
chat
.
model
property
:
"
curr
ent
I
nde
x
"
when
:
y
+
height
+
2
*
chat
.
spacing
>
chat
.
contentY
+
chat
.
height
&&
y
<
chat
.
contentY
+
chat
.
height
value
:
index
delayed
:
true
Connections
{
target
:
chat
function
onMovem
ent
E
nde
d
()
{
if
(
y
+
height
+
2
*
chat
.
spacing
>
chat
.
contentY
+
chat
.
height
&&
y
<
chat
.
contentY
+
chat
.
height
)
chat
.
model
.
currentIndex
=
index
;
}
}
}
section
{
...
...
@@ -296,13 +295,13 @@ Page {
}
}
footer
:
BusyIndicator
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
running
:
chat
.
model
&&
chat
.
model
.
paginationInProgress
height
:
50
width
:
50
z
:
3
}
footer
:
BusyIndicator
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
running
:
chat
.
model
&&
chat
.
model
.
paginationInProgress
height
:
50
width
:
50
z
:
3
}
}
Rectangle
{
...
...
This diff is collapsed.
Click to expand it.
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