Changed the onclick handlers for Keyboard CLICKCODES to let updateFocus() scroll the canvas into view as needed, because (at least on iOS) the code that tries prevent the page from scrolling has an annoying "jerking" side-effect; also fixed the old Node web server code that would install onclick handlers for disk images, triggering automatic conversion of JSON to IMG files
This commit is contained in:
parent
ed75397b83
commit
7ca8fa18a1
12 changed files with 19 additions and 18 deletions
|
|
@ -3216,7 +3216,7 @@ DiskDump.prototype.convertOSIDiskToJSON = function()
|
|||
};
|
||||
|
||||
/**
|
||||
* convertToIMG()
|
||||
* convertToIMG(fRaw)
|
||||
*
|
||||
* Converts the disk image data to a Buffer.
|
||||
*
|
||||
|
|
@ -3224,9 +3224,10 @@ DiskDump.prototype.convertOSIDiskToJSON = function()
|
|||
* disk images under /tmp, using a name based on a hash of the source path).
|
||||
*
|
||||
* @this {DiskDump}
|
||||
* @param {boolean} [fRaw] (used by httpapi.js to get the underlying Buffer)
|
||||
* @return {Buffer|null} containing the disk image's raw data, or null if no data available (or parse error)
|
||||
*/
|
||||
DiskDump.prototype.convertToIMG = function()
|
||||
DiskDump.prototype.convertToIMG = function(fRaw)
|
||||
{
|
||||
if (!this.bufDisk) {
|
||||
|
||||
|
|
@ -3391,7 +3392,7 @@ DiskDump.prototype.convertToIMG = function()
|
|||
|
||||
this.bufDisk = buf;
|
||||
}
|
||||
return this.bufDisk;
|
||||
return (fRaw && this.bufDisk instanceof BufferPF)? this.bufDisk.buf : this.bufDisk;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue