File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
reactive/components/rewritten Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1961,12 +1961,15 @@ export default class Lively {
19611961 if ( ! evt . shiftKey ) { // evt.ctrlKey
19621962 evt . preventDefault ( ) ;
19631963 evt . stopPropagation ( ) ;
1964+
19641965 // #Hack #Workaround weired browser scrolling behavior
19651966 if ( lively . lastScrollLeft || lively . lastScrollTop ) {
19661967 document . scrollingElement . scrollTop = lively . lastScrollTop ;
19671968 document . scrollingElement . scrollLeft = lively . lastScrollLeft ;
19681969 }
19691970
1971+ if ( self . __preventGlobalContextMenu__ ) { return ; }
1972+
19701973 var link = Array . from ( evt . composedPath ( ) ) . find ( ea => ea . localName == "a" )
19711974 if ( link ) {
19721975 // #TODO can we shorten this or hide this context specific behavior,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import MCTS from './jumping-cubes-mcts.js';
88import Matrix from './square-matrix.js' ;
99
1010import { shake } from 'utils' ;
11+ import { fa4 } from 'src/client/utils/font-awesome-utils.js' ;
1112
1213class Cube {
1314
@@ -588,10 +589,6 @@ export default class JumpingCubes extends Morph {
588589 evt . stopPropagation ( ) ;
589590 evt . preventDefault ( ) ;
590591
591- function fa4 ( classes ) {
592- return '<i class="fa fa-' + classes + '" aria-hidden="true"></i>' ;
593- }
594-
595592 const players = this . getConfig ( ) . players . map ( ( player , index ) => {
596593 function checkIcon ( enabled ) {
597594 return enabled ? fa4 ( 'check-square-o' ) : fa4 ( 'square-o' ) ;
Original file line number Diff line number Diff line change 1+
2+ export function fa4 ( classes ) {
3+ return '<i class="fa fa-' + classes + '" aria-hidden="true"></i>' ;
4+ }
You can’t perform that action at this time.
0 commit comments