File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
packages/scratch-gui/src/components Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ const GUIComponent = props => {
185185 loading = { loading }
186186 manuallySaveThumbnails = {
187187 manuallySaveThumbnails &&
188- isPlayerOnly &&
189188 userOwnsProject
190189 }
191190 onUpdateProjectThumbnail = { onUpdateProjectThumbnail }
Original file line number Diff line number Diff line change 9393 color: $ui- white;
9494 background- color : $motion- primary;
9595 }
96+
97+ .setThumbnailButton : active {
98+ filter : brightness (90% );
99+ }
96100}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import scratchLogo from '../menu-bar/scratch-logo.svg';
2020import styles from './stage-header.css' ;
2121import { storeProjectThumbnail } from '../../lib/store-project-thumbnail.js' ;
2222import dataURItoBlob from '../../lib/data-uri-to-blob.js' ;
23- import debounce from 'lodash.debounce ' ;
23+ import throttle from 'lodash.throttle ' ;
2424
2525const messages = defineMessages ( {
2626 largeStageSizeMessage : {
@@ -75,7 +75,7 @@ const StageHeaderComponent = function (props) {
7575 let header = null ;
7676
7777 const onUpdateThumbnail = useCallback (
78- debounce (
78+ throttle (
7979 ( ) => {
8080 if ( ! onUpdateProjectThumbnail ) {
8181 return ;
You can’t perform that action at this time.
0 commit comments