mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-11 19:40:08 +02:00
feat: hide scroll back to content button
This commit is contained in:
@@ -461,7 +461,7 @@ const LayerUI = ({
|
|||||||
renderCustomStats={renderCustomStats}
|
renderCustomStats={renderCustomStats}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{appState.scrolledOutside && (
|
{appState.scrolledOutside && !appState.scrollConstraints && (
|
||||||
<button
|
<button
|
||||||
className="scroll-back-to-content"
|
className="scroll-back-to-content"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
@@ -197,7 +197,8 @@ export const MobileMenu = ({
|
|||||||
{renderAppToolbar()}
|
{renderAppToolbar()}
|
||||||
{appState.scrolledOutside &&
|
{appState.scrolledOutside &&
|
||||||
!appState.openMenu &&
|
!appState.openMenu &&
|
||||||
!appState.openSidebar && (
|
!appState.openSidebar &&
|
||||||
|
!appState.scrollConstraints && (
|
||||||
<button
|
<button
|
||||||
className="scroll-back-to-content"
|
className="scroll-back-to-content"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
Reference in New Issue
Block a user