Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plasma Phone Components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
26
Issues
26
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Plasma
Plasma Phone Components
Commits
44bafbed
Commit
44bafbed
authored
Jun 23, 2015
by
Marco Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify scroll snapping
parent
f5f78c1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
53 deletions
+1
-53
applets/notifications/contents/ui/main.qml
applets/notifications/contents/ui/main.qml
+0
-42
containments/homescreen/package/contents/ui/main.qml
containments/homescreen/package/contents/ui/main.qml
+1
-11
No files found.
applets/notifications/contents/ui/main.qml
View file @
44bafbed
...
...
@@ -156,48 +156,6 @@ Item {
summary
:
"
July: Hello?
"
actions
:
[]
}
ListElement
{
source
:
"
im2Source
"
appIcon
:
"
im-google
"
appName
:
"
Message
"
summary
:
"
July: Hello?
"
actions
:
[]
}
ListElement
{
source
:
"
im2Source
"
appIcon
:
"
im-google
"
appName
:
"
Message
"
summary
:
"
July: Hello?
"
actions
:
[]
}
ListElement
{
source
:
"
im2Source
"
appIcon
:
"
im-google
"
appName
:
"
Message
"
summary
:
"
July: Hello?
"
actions
:
[]
}
ListElement
{
source
:
"
im2Source
"
appIcon
:
"
im-google
"
appName
:
"
Message
"
summary
:
"
July: Hello?
"
actions
:
[]
}
ListElement
{
source
:
"
im2Source
"
appIcon
:
"
im-google
"
appName
:
"
Message
"
summary
:
"
July: Hello?
"
actions
:
[]
}
ListElement
{
source
:
"
im2Source
"
appIcon
:
"
im-google
"
appName
:
"
Message
"
summary
:
"
July: Hello?
"
actions
:
[]
}
}
ListView
{
...
...
containments/homescreen/package/contents/ui/main.qml
View file @
44bafbed
...
...
@@ -515,10 +515,7 @@ Item {
snapMode
:
GridView
.
SnapToRow
onFlickingChanged
:
{
if
(
!
draggingVertically
&&
contentY
<
-
headerItem
.
height
+
root
.
height
)
{
scrollAnim
.
to
=
Math
.
round
(
contentY
/
root
.
height
)
*
root
.
height
scrollAnim
.
running
=
true
;
}
draggingVerticallyChanged
(
false
);
}
onDraggingVerticallyChanged
:
{
if
(
draggingVertically
)
{
...
...
@@ -540,13 +537,6 @@ Item {
scrollAnim
.
running
=
true
;
return
;
}
//(1000/scrollAnim.duration) is the length scrolled at the current speed in the duration of the animation
if
(
contentY
<
-
headerItem
.
height
+
root
.
height
)
{
scrollAnim
.
to
=
Math
.
round
((
contentY
+
(
verticalVelocity
/
(
1000
/
scrollAnim
.
duration
)))
/
root
.
height
)
*
root
.
height
scrollAnim
.
running
=
true
;
}
}
NumberAnimation
{
id
:
scrollAnim
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment