Fix some incorrect calculations
This commit is contained in:
parent
c1f0282acc
commit
6424f95855
1 changed files with 3 additions and 2 deletions
|
|
@ -86,8 +86,9 @@ class ToolbarDisplayController {
|
|||
// If message is too close to top, make space for toolbar
|
||||
if (targetOffset.dy < 360) {
|
||||
// If chat can scroll up, do so
|
||||
final scrollTo = scrollController.offset - targetOffset.dy + 360 + 118;
|
||||
if (scrollTo >= 0) {
|
||||
final scrollTo = scrollController.offset - targetOffset.dy + 300;
|
||||
if (scrollTo >= scrollController.position.minScrollExtent &&
|
||||
scrollTo <= scrollController.position.maxScrollExtent) {
|
||||
scrollController.animateTo(
|
||||
scrollTo,
|
||||
duration: FluffyThemes.animationDuration,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue