Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -289,7 +289,7 @@
|
|
289 |
keyElement.classList.add('black-key');
|
290 |
// Position black key centered over the "crack" of the preceding white key
|
291 |
// currentWhiteKeyVisualOffset is the right edge of the *previous* white key
|
292 |
-
keyElement.style.left = (currentWhiteKeyVisualOffset - (BLACK_KEY_WIDTH_PX / 2) - (WHITE_KEY_OVERLAP_PX / 2)
|
293 |
keyElement.style.top = '0px';
|
294 |
} else { // White key
|
295 |
keyElement.classList.add('white-key');
|
|
|
289 |
keyElement.classList.add('black-key');
|
290 |
// Position black key centered over the "crack" of the preceding white key
|
291 |
// currentWhiteKeyVisualOffset is the right edge of the *previous* white key
|
292 |
+
keyElement.style.left = (currentWhiteKeyVisualOffset - (BLACK_KEY_WIDTH_PX / 2) - (WHITE_KEY_OVERLAP_PX / 2) + 9) + 'px';
|
293 |
keyElement.style.top = '0px';
|
294 |
} else { // White key
|
295 |
keyElement.classList.add('white-key');
|