      Module["canvas"].removeEventListener("mousemove", GLFW.onMousemove, true);
      Module["canvas"].removeEventListener("mousedown", GLFW.onMouseButtonDown, true);
      Module["canvas"].removeEventListener("mouseup", GLFW.onMouseButtonUp, true);
-@@ -969,6 +1119,11 @@ var LibraryGLFW = {
+@@ -969,6 +1123,10 @@ var LibraryGLFW = {
      Module["canvas"].removeEventListener('mousewheel', GLFW.onMouseWheel, true);
      Module["canvas"].removeEventListener('mouseenter', GLFW.onMouseenter, true);
      Module["canvas"].removeEventListener('mouseleave', GLFW.onMouseleave, true);
 +    Module["canvas"].removeEventListener('drop', GLFW.onDrop, true);
 +    Module["canvas"].removeEventListener('dragover', GLFW.onDragover, true);
-+    Module["canvas"].removeEventListener('dragend', GLFW.onDragend, true);
 +
 +
      Module["canvas"].width = Module["canvas"].height = 1;
      GLFW.windows = null;
      GLFW.active = null;
-@@ -1230,6 +1385,17 @@ var LibraryGLFW = {
+@@ -1230,6 +1388,17 @@ var LibraryGLFW = {
    glfwGetInputMode: function(winid, mode) {
      var win = GLFW.WindowFromId(winid);
      if (!win) return;

diff --git a/src/library_glfw.js b/src/library_glfw.js
index dfa4896c4..98368a799 100644
--- a/src/library_glfw.js
+++ b/src/library_glfw.js
@@ -13,7 +13,6 @@

     Module["canvas"].addEventListener("mousemove", GLFW.onMousemove, true);
     Module["canvas"].addEventListener("mousedown", GLFW.onMouseButtonDown, true);
     Module["canvas"].addEventListener("mouseup", GLFW.onMouseButtonUp, true);
@@ -951,6 +1100,8 @@ var LibraryGLFW = {
     Module["canvas"].addEventListener('mousewheel', GLFW.onMouseWheel, true);
     Module["canvas"].addEventListener('mouseenter', GLFW.onMouseenter, true);
     Module["canvas"].addEventListener('mouseleave', GLFW.onMouseleave, true);
+    Module["canvas"].addEventListener('drop', GLFW.onDrop, true);
+    Module["canvas"].addEventListener('dragover', GLFW.onDragover, true);
 
     Browser.resizeListeners.push(function(width, height) {
        GLFW.onCanvasResize(width, height);
@@ -959,9 +1110,12 @@ var LibraryGLFW = {
   },
 
   glfwTerminate: function() {
