File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,11 @@ AFRAME.registerComponent('helloworld-window', {
5555 input : function ( e ) {
5656 if ( ! e . detail . target ) return
5757 if ( e . detail . target . id == 'myRange' ) this . data . myvalue = e . detail . target . value // reactive demonstration
58- if ( e . detail . target . name == 'icons' ) document . querySelector ( '[launcher]' ) . object3D . getObjectByProperty ( "HTMLMesh" ) . scale . setScalar ( e . detail . target . value )
5958 if ( e . detail . target . name == 'cmenu' ) document . querySelector ( ".iconmenu" ) . style . display = e . detail . target . value == 'on' ? '' : 'none' ;
59+ if ( e . detail . target . name == 'icons' ) {
60+ document . querySelector ( '[launcher]' ) . object3D . getObjectByProperty ( "HTMLMesh" ) . scale . setScalar ( e . detail . target . value )
61+ document . querySelector ( '.iconmenu' ) . style . transform = e . detail . target . value == '0.8' ? 'scale(1)' : 'scale(1.33)'
62+ }
6063 console . dir ( e . detail )
6164 } ,
6265
You can’t perform that action at this time.
0 commit comments