File tree 3 files changed +13
-14
lines changed
3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 88
88
.md-app-toolbar {
89
89
position : fixed ;
90
90
top : 0 ;
91
- transition : none ;
92
91
}
93
92
}
94
93
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default {
31
31
} ,
32
32
data : ( ) => ( {
33
33
revealTimer : null ,
34
- revealLastPos : false ,
34
+ revealLastPos : 0 ,
35
35
MdApp : {
36
36
options : {
37
37
mode : null ,
@@ -116,15 +116,13 @@ export default {
116
116
this . revealLastPos = scrollTop
117
117
} , 100 )
118
118
119
- if ( this . revealLastPos > scrollTop + safeAmount ) {
120
- this . MdApp . toolbar . revealActive = true
121
- this . MdApp . toolbar . transformY = scrollTop - threshold
122
- } else if ( scrollTop < threshold ) {
123
- this . MdApp . toolbar . revealActive = false
124
- this . MdApp . toolbar . transformY = 0
119
+ if ( scrollTop > threshold ) {
120
+ this . MdApp . toolbar . revealActive = this . revealLastPos > scrollTop + safeAmount
125
121
} else {
126
- this . MdApp . toolbar . transformY = scrollTop - threshold
122
+ this . MdApp . toolbar . revealActive = true
127
123
}
124
+
125
+ this . MdApp . toolbar . transformY = scrollTop - threshold
128
126
} ,
129
127
handleModeScroll ( $event ) {
130
128
if ( this . mdMode === 'reveal' ) {
Original file line number Diff line number Diff line change 34
34
box-shadow : none !important ;
35
35
}
36
36
37
- .md-reveal .md-reveal-active {
38
- transform : translate3d (0 , calc (100% + 10px ), 0 );
39
- transition : .3s $md-transition-stand-timing ;
40
- transition-property : box-shadow , transform ;
41
- will-change : box-shadow , transform ;
37
+ .md-reveal {
38
+ .md-reveal-active {
39
+ transform : translate3d (0 , calc (100% + 10px ), 0 );
40
+ transition : .3s $md-transition-stand-timing ;
41
+ transition-property : box-shadow , transform ;
42
+ will-change : box-shadow , transform ;
43
+ }
42
44
}
43
45
</style >
You can’t perform that action at this time.
0 commit comments