Skip to content
Snippets Groups Projects
Commit 52e5a2d1 authored by tatiana.novikova's avatar tatiana.novikova Committed by andrey.daragan
Browse files

[*] Update onEntered event for scroll

parent ceadb4ef
No related branches found
No related tags found
No related merge requests found
......@@ -21,14 +21,17 @@ MouseArea
//If mouse pointer go to parent area
onEntered:
{
//ScrollButton is needed to be visible only if list lenght more than its height
scrollVisible = viewData.contentHeight > viewData.height;
//If user see the first element
if(viewData.atYBeginning)
scrollDirectionUp = false;
//If user see the last element
if(viewData.atYEnd)
scrollDirectionUp = true;
if(containsMouse)
{
//ScrollButton is needed to be visible only if list lenght more than its height
scrollVisible = viewData.contentHeight > viewData.height;
//If user see the first element
if(viewData.atYBeginning)
scrollDirectionUp = false;
//If user see the last element
if(viewData.atYEnd)
scrollDirectionUp = true;
}
}
//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