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
//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