You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the Storybook with the device frame and panels down the size, the Tap Details globalPosition incorrectly includes the screen outside of the device frame.
If you click in the top left corner, you don't get 0,0, but instead ~600,10, because it includes the 600 pixels of panel to the left of the device frame.
This globalPosition should somehow be compensated for the area outside of the device being emulated.
The text was updated successfully, but these errors were encountered:
GestureDetector(
behavior:HitTestBehavior.opaque,
onTapUp: (details) {
final position =TranslatePosition.translate(context, details.globalPosition);
print('onTapUp $position');
}
)
I also looked if there was a easy way to hook into Flutter to change this, but didn't find anything useful. BTW The reason I needed the "global" position, was to work with Overlays, which seem to assume the top-left of the app is 0,0, and there is no conveniant way to get the coordinates of where the Overlay is in global coordinates.
When running the Storybook with the device frame and panels down the size, the Tap Details globalPosition incorrectly includes the screen outside of the device frame.
For example:
If you click in the top left corner, you don't get 0,0, but instead ~600,10, because it includes the 600 pixels of panel to the left of the device frame.
This globalPosition should somehow be compensated for the area outside of the device being emulated.
The text was updated successfully, but these errors were encountered: