Skip to content

Commit eb49e3d

Browse files
committed
Touch toolbar fades in and out as input is activated/deactivated. This fixes a bug whereby the toolbar was visible while the user was in CSS editing mode, and interacting with it caused unpredictable changes in program state.
Technically, the toolbar can be used while input is deactivated and the toolbar is in the process of fading out. If this is a problem, we can either fix the bug or just have the toolbar instantly show/hide.
1 parent 7628660 commit eb49e3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/touch-toolbar.js

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
});
4646

4747
toolbar.appendTo(document.body);
48+
input.on('activate', function() { toolbar.fadeIn(); });
49+
input.on('deactivate', function() { toolbar.fadeOut(); });
4850

4951
return {
5052
unload: function() {

0 commit comments

Comments
 (0)