Tidy up of files

This commit is contained in:
Nathan Kunicki 2017-11-26 19:48:48 +00:00
parent bbf4b5972d
commit bda89911fc
2 changed files with 1 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" href="./static/css/styles.css" /> <link rel="stylesheet" href="./static/css/styles.css" />
<script src="./static/js/serialisers.js"></script> <script src="./static/js/serialisers.js"></script>
<script src="./static/js/bmptools.js"></script> <script src="./static/js/bmptools.js"></script>
<script src="./static/js/bittmappeditor.js"></script> <script src="./static/js/editor.js"></script>
<script src="./static/js/main.js"></script> <script src="./static/js/main.js"></script>
</head> </head>
<body> <body>

View File

@ -145,7 +145,6 @@ class BittMappEditor {
this._selectionStartY = this._calculateYFromMouseCoords(event.offsetY); this._selectionStartY = this._calculateYFromMouseCoords(event.offsetY);
this._selectionEndX = this._selectionStartX + 1; this._selectionEndX = this._selectionStartX + 1;
this._selectionEndY = this._selectionStartY + 1; this._selectionEndY = this._selectionStartY + 1;
// NK: Only wipe selection if Ctrl isn't pressed
if (!this._shiftDown) { if (!this._shiftDown) {
this._selection.fill(0x0); this._selection.fill(0x0);
} }
@ -318,7 +317,6 @@ class BittMappEditor {
break; break;
case Mode.SELECTION: case Mode.SELECTION:
// Only do this if Ctrl isn't pressed
if (!this._shiftDown) { if (!this._shiftDown) {
mouseX = this._calculateXFromMouseCoords(event.offsetX, Math.ceil); mouseX = this._calculateXFromMouseCoords(event.offsetX, Math.ceil);
mouseY = this._calculateYFromMouseCoords(event.offsetY, Math.ceil); mouseY = this._calculateYFromMouseCoords(event.offsetY, Math.ceil);