Skip to content
Snippets Groups Projects
Commit c28766f7 authored by andrey.daragan's avatar andrey.daragan
Browse files

Merge branch 'features-3000' into 'develop'

[*] Update onEntered event for scroll

See merge request !24
parents ceadb4ef 52e5a2d1
No related branches found
No related tags found
1 merge request!24[*] Update onEntered event for scroll
...@@ -21,14 +21,17 @@ MouseArea ...@@ -21,14 +21,17 @@ MouseArea
//If mouse pointer go to parent area //If mouse pointer go to parent area
onEntered: onEntered:
{ {
//ScrollButton is needed to be visible only if list lenght more than its height if(containsMouse)
scrollVisible = viewData.contentHeight > viewData.height; {
//If user see the first element //ScrollButton is needed to be visible only if list lenght more than its height
if(viewData.atYBeginning) scrollVisible = viewData.contentHeight > viewData.height;
scrollDirectionUp = false; //If user see the first element
//If user see the last element if(viewData.atYBeginning)
if(viewData.atYEnd) scrollDirectionUp = false;
scrollDirectionUp = true; //If user see the last element
if(viewData.atYEnd)
scrollDirectionUp = true;
}
} }
//If mouse pointer go out the parent area //If mouse pointer go out the parent area
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment