zamis 5 лет назад
Родитель
Сommit
1bbc1f50c5
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 1
      src/client/js/components/Fab.jsx
  2. 4 0
      src/client/styles/scss/_layout.scss

+ 1 - 1
src/client/js/components/Fab.jsx

@@ -22,7 +22,7 @@ const Fab = (props) => {
   const stickyChangeHandler = useCallback((event) => {
     logger.debug('StickyEvents.CHANGE detected');
 
-    const classes = event.detail.isSticky ? 'animated fadeInUp faster' : 'animated invisible';
+    const classes = event.detail.isSticky ? 'animated fadeInUp faster' : 'animated fadeOut faster not-push-btn';
     setAnimateClasses(classes);
   }, []);
 

+ 4 - 0
src/client/styles/scss/_layout.scss

@@ -55,6 +55,10 @@ body {
   bottom: 3rem;
   z-index: $zindex-fixed;
 
+  .not-push-btn {
+    pointer-events: none;
+  }
+
   transition: all 200ms linear;
 
   .btn-create-page {