fixed an issue where the simulator's UI was not rendering correctly on FireFox at loading. This fix is here to prepare the support of accessibility in the simulator. (#486)
This commit is contained in:
		
				
					committed by
					
						
						Peli de Halleux
					
				
			
			
				
	
			
			
			
						parent
						
							5e7cba3882
						
					
				
				
					commit
					2f6e1fe277
				
			@@ -3,6 +3,7 @@ namespace pxsim.input {
 | 
				
			|||||||
        let pin = getPin(pinId);
 | 
					        let pin = getPin(pinId);
 | 
				
			||||||
        if (!pin) return;
 | 
					        if (!pin) return;
 | 
				
			||||||
        pin.isTouched();
 | 
					        pin.isTouched();
 | 
				
			||||||
 | 
					        runtime.queueDisplayUpdate(); 
 | 
				
			||||||
        pxtcore.registerWithDal(pin.id, DAL.MICROBIT_BUTTON_EVT_CLICK, handler);
 | 
					        pxtcore.registerWithDal(pin.id, DAL.MICROBIT_BUTTON_EVT_CLICK, handler);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -10,6 +11,7 @@ namespace pxsim.input {
 | 
				
			|||||||
        let pin = getPin(pinId);
 | 
					        let pin = getPin(pinId);
 | 
				
			||||||
        if (!pin) return;
 | 
					        if (!pin) return;
 | 
				
			||||||
        pin.isTouched();
 | 
					        pin.isTouched();
 | 
				
			||||||
 | 
					        runtime.queueDisplayUpdate(); 
 | 
				
			||||||
        pxtcore.registerWithDal(pin.id, DAL.MICROBIT_BUTTON_EVT_UP, handler);
 | 
					        pxtcore.registerWithDal(pin.id, DAL.MICROBIT_BUTTON_EVT_UP, handler);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user