{"versions":{"1.0.0":{"name":"electron-click-drag-plugin","version":"1.0.0","description":"A native Electron plugin for click-and-drag functionality (Windows only)","main":"build/Release/drag.node","author":{"name":"noobfromph"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/noobfromph/electron-click-drag-plugin.git"},"keywords":["electron","native","drag","windows","addon","click-drag"],"scripts":{"test":"electron test/main.js","install":"node-gyp rebuild"},"dependencies":{"electron":"^37.2.6","node-addon-api":"^8.5.0"},"_id":"electron-click-drag-plugin@1.0.0","gypfile":true,"gitHead":"94d0f46667275a91dbd197630d28333fbcd3a609","bugs":{"url":"https://github.com/noobfromph/electron-click-drag-plugin/issues"},"homepage":"https://github.com/noobfromph/electron-click-drag-plugin#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-XxTG4Q33vhhGkN/0R6WNiW29cQ3F/iXPssFThy8R0GW9pf2rnHxVKa9YYciacieOomwA7F84kp5iXupc6uWYsA==","shasum":"359f04a4a720930032dc6232eec6e097b5b51bfe","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-click-drag-plugin/-/electron-click-drag-plugin-1.0.0.tgz","fileCount":5,"unpackedSize":111773,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDkliKlB6RSxC4gS8B7oLCOUNGIVsuVStkmESJA25fDJAIhAKYEX4VTnu16a+MOF1XvvC+VsceUrWH+aGi2UC1UgIYT"}],"size":58034},"_npmUser":{"name":"anonymous","email":"ejlungay@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ejlungay@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/electron-click-drag-plugin_1.0.0_1755142728553_0.293206991173552"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-14T03:38:48.725Z","publish_time":1755142728725,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"1.0.1":{"name":"electron-click-drag-plugin","version":"1.0.1","description":"A native Electron plugin for click-and-drag functionality (Windows only)","main":"build/Release/drag.node","author":{"name":"noobfromph"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/noobfromph/electron-click-drag-plugin.git"},"keywords":["electron","native","drag","windows","addon","click-drag"],"scripts":{"test":"electron test/main.js","install":"node -e \"console.log('Using prebuilt electron-click-drag-plugin binary')\""},"devDependencies":{"electron":"^37.2.6","node-addon-api":"^8.5.0"},"_id":"electron-click-drag-plugin@1.0.1","gitHead":"e8aeb604ba3b2be7b6d14af8da4cc8d210b32a43","bugs":{"url":"https://github.com/noobfromph/electron-click-drag-plugin/issues"},"homepage":"https://github.com/noobfromph/electron-click-drag-plugin#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-pz+7+g0AwzOq0IddzlhpEyyn4ORJrnsVUvA2zW0dHj8cZQuaqA5xCsri9TPDqN1HF7STEjxqQqUSt+RnWQluEw==","shasum":"2971e4085e7d87591149306fc01faf8a0e71353c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-click-drag-plugin/-/electron-click-drag-plugin-1.0.1.tgz","fileCount":4,"unpackedSize":110783,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCze4GPmVg9nonOgetSSyxSsIVzBzCfvAFgXoJolXiOFAIgCpTgmoRP7zi/Fv67BBEuVWKX8TxyT1ln2V64vFpBjBU="}],"size":57501},"_npmUser":{"name":"anonymous","email":"ejlungay@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ejlungay@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/electron-click-drag-plugin_1.0.1_1755143650502_0.9226462487450329"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-14T03:54:10.713Z","publish_time":1755143650713,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"1.0.2":{"name":"electron-click-drag-plugin","version":"1.0.2","description":"A native Electron plugin for click-and-drag functionality (Windows only)","main":"build/Release/drag.node","author":{"name":"noobfromph"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/noobfromph/electron-click-drag-plugin.git"},"keywords":["electron","native","drag","windows","addon","click-drag"],"scripts":{"test":"electron test/main.js","install":"node -e \"console.log('Using prebuilt electron-click-drag-plugin binary')\""},"devDependencies":{"electron":"^37.2.6","node-addon-api":"^8.5.0"},"_id":"electron-click-drag-plugin@1.0.2","gitHead":"e8aeb604ba3b2be7b6d14af8da4cc8d210b32a43","bugs":{"url":"https://github.com/noobfromph/electron-click-drag-plugin/issues"},"homepage":"https://github.com/noobfromph/electron-click-drag-plugin#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-me6LwbYrO0elIZmhvVK7f8dNp9OFX7Q2qR2wHhfPkqueNKIZOVWSHELJWrlZuwKrFDOdWJYcVe8RPai0ILCqLA==","shasum":"6a744bf6b5b6577df2bab1c9ecee55354511e6f1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-click-drag-plugin/-/electron-click-drag-plugin-1.0.2.tgz","fileCount":4,"unpackedSize":110946,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDX+O+i+44WXtJCUcxszBzNfmRmenUngN3nSzveexh2yAIhALjx/HlPPuU7K5Ckadx3yCy9poC60YefN/xq9IcFFnDl"}],"size":57571},"_npmUser":{"name":"anonymous","email":"ejlungay@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ejlungay@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/electron-click-drag-plugin_1.0.2_1755144063651_0.418181315100419"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-14T04:01:03.846Z","publish_time":1755144063846,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"2.0.0":{"name":"electron-click-drag-plugin","version":"2.0.0","description":"A native Electron plugin for click-and-drag functionality (Windows + Linux)","main":"index.js","types":"index.d.ts","author":{"name":"noobfromph"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/noobfromph/electron-click-drag-plugin.git"},"keywords":["electron","native","drag","windows","linux","addon","click-drag"],"scripts":{"test":"electron test/main.js","install":"node -e \"console.log('Using prebuilt electron-click-drag-plugin binary')\""},"devDependencies":{"electron":"^37.2.6","node-addon-api":"^8.5.0"},"_id":"electron-click-drag-plugin@2.0.0","gitHead":"eaa53a534aa65025c35fc81b0f2c7b29dadd8bba","bugs":{"url":"https://github.com/noobfromph/electron-click-drag-plugin/issues"},"homepage":"https://github.com/noobfromph/electron-click-drag-plugin#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QxdNZ9wEUN4NaPyw9+5Prz5os0Udb8bs6l4jFnBTmnVq46F7PufclHRurOF6rvya29110lx75bakjd2R2AfJyw==","shasum":"2c6a34d6aeab61df103f3c4d3db9398d21af03e1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-click-drag-plugin/-/electron-click-drag-plugin-2.0.0.tgz","fileCount":6,"unpackedSize":177299,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID089nlOq7NVMGRBv2xsUY0yeT+E+1LojtLC6JkSHcPNAiEA1zWUnfpMVl11F8oj4spyZYHxmlM9vZTC5U4cguYA1sc="}],"size":80498},"_npmUser":{"name":"anonymous","email":"ejlungay@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ejlungay@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/electron-click-drag-plugin_2.0.0_1755226459812_0.15715481548116195"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-15T02:54:20.003Z","publish_time":1755226460003,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"2.0.1":{"name":"electron-click-drag-plugin","version":"2.0.1","description":"A native Electron plugin for click-and-drag functionality (Windows + Linux)","main":"index.js","types":"index.d.ts","author":{"name":"noobfromph"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/noobfromph/electron-click-drag-plugin.git"},"keywords":["electron","native","drag","windows","linux","addon","click-drag"],"scripts":{"test":"electron test/main.js","install":"node -e \"console.log('Using prebuilt electron-click-drag-plugin binary')\""},"devDependencies":{"electron":"^37.2.6","node-addon-api":"^8.5.0"},"_id":"electron-click-drag-plugin@2.0.1","gitHead":"eaa53a534aa65025c35fc81b0f2c7b29dadd8bba","bugs":{"url":"https://github.com/noobfromph/electron-click-drag-plugin/issues"},"homepage":"https://github.com/noobfromph/electron-click-drag-plugin#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-+WdwhHZvlsdu64PAwbtts69Bk1NqkgSY7Pri0p03UeOPP4w/B8JOfg83NuMwtC2osCpIfiQ4XYkDmZ7uTPRprg==","shasum":"fef00e2e305fbff02270860c55704b6c8a8c5bc8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-click-drag-plugin/-/electron-click-drag-plugin-2.0.1.tgz","fileCount":7,"unpackedSize":177486,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA8TOUqIeMDlECwkD6hboZsBRBwPHRZR+FZtcrS1Mls0AiEArxL+bIrhrhgs0tQV/k/+pRmm4QMoQh+eWl8i4k8pf4Q="}],"size":80695},"_npmUser":{"name":"anonymous","email":"ejlungay@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ejlungay@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/electron-click-drag-plugin_2.0.1_1755226620949_0.7821337178050223"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-15T02:57:01.201Z","publish_time":1755226621201,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"2.0.2":{"name":"electron-click-drag-plugin","version":"2.0.2","description":"A native Electron plugin for click-and-drag functionality (Windows + Linux + macOS)","main":"index.js","types":"index.d.ts","author":{"name":"noobfromph"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/noobfromph/electron-click-drag-plugin.git"},"keywords":["electron","native","drag","windows","linux","macos","addon","click-drag"],"scripts":{"test":"electron test/main.js","install":"node -e \"console.log('Using prebuilt electron-click-drag-plugin binary')\""},"devDependencies":{"electron":"^37.2.6","node-addon-api":"^8.5.0"},"_id":"electron-click-drag-plugin@2.0.2","gitHead":"499dfe32c4265d4eba97124121180eeed5544701","bugs":{"url":"https://github.com/noobfromph/electron-click-drag-plugin/issues"},"homepage":"https://github.com/noobfromph/electron-click-drag-plugin#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-J/WdIOacc6OAWJUwn/lRng9cUvlnGomr0Y3/x1yTqL5+oz9RUtTN0rPEoY7OhgcE4eUujPkytWEiyiuY8KYn8w==","shasum":"c59edef6e941481cb7e589d19dbd6b1fb6997908","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-click-drag-plugin/-/electron-click-drag-plugin-2.0.2.tgz","fileCount":9,"unpackedSize":295472,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCvXEU74EUBatw0g9+E9usYCIL4vQEw8aAW/HsE2GkKwQIhAIQF9Rn9zrQ+BTyOaP+LeoSftFTP7MSFzkqAIWzmmAG2"}],"size":96658},"_npmUser":{"name":"anonymous","email":"ejlungay@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ejlungay@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/electron-click-drag-plugin_2.0.2_1755430574256_0.313124191417381"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-17T11:36:14.476Z","publish_time":1755430574476,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]}},"dist-tags":{"latest":"2.0.2"},"name":"electron-click-drag-plugin","time":{"created":"2025-08-14T03:39:03.338Z","modified":"2025-08-17T11:36:46.307Z","1.0.0":"2025-08-14T03:38:48.725Z","1.0.1":"2025-08-14T03:54:10.713Z","1.0.2":"2025-08-14T04:01:03.846Z","2.0.0":"2025-08-15T02:54:20.003Z","2.0.1":"2025-08-15T02:57:01.201Z","2.0.2":"2025-08-17T11:36:14.476Z"},"readme":"# electron-click-drag-plugin\r\nA native Node.js addon that enables elements to be both draggable and clickable in Electron / Overwolf Electron.\r\nUseful when -webkit-app-region: drag disables click events, but you still want OS-level window dragging.\r\n\r\n## 📦 Installation\r\nInstall the prebuilt binary from npm (recommended):\r\n\r\n```bash\r\nnpm install electron-click-drag-plugin\r\n```\r\n## 🛠 Build from source\r\nIf you prefer or need to compile yourself (e.g., for a different Electron version):\r\n\r\n```bash\r\nnpm install node-addon-api electron --save\r\nnpx node-gyp configure\r\nnpx node-gyp build\r\n```\r\nThis will compile the native addon into ./build/Release/drag.node.\r\n\r\n### 🚀 Usage\r\nIn your Electron preload or main process:\r\n\r\n```js\r\nconst { app, BrowserWindow, ipcMain } = require('electron');\r\nconst dragAddon = require('electron-click-drag-plugin'); // Loads the native addon\r\n\r\napp.whenReady().then(() => {\r\n  const win = new BrowserWindow({\r\n    width: 800,\r\n    height: 800,\r\n    frame: false, // Important: no OS window frame\r\n    webPreferences: {\r\n      nodeIntegration: true,\r\n      contextIsolation: false, // only for test/dev\r\n      devTools: true\r\n    },\r\n  });\r\n\r\n  win.loadFile('index.html');\r\n  win.webContents.openDevTools();\r\n\r\n  ipcMain.on('start-drag', () => {\r\n    try {\r\n      const hwndBuffer = win.getNativeWindowHandle();\r\n      // Linux: extract X11 Window ID from the buffer (first 4 bytes, little-endian)\r\n      // macOS/Windows: pass Buffer directly\r\n      const windowId = process.platform === 'linux'\r\n        ? hwndBuffer.readUInt32LE(0)\r\n        : hwndBuffer;\r\n\r\n      dragAddon.startDrag(windowId);\r\n    } catch (error) {\r\n      console.error(error);\r\n    }\r\n  });\r\n});\r\n```\r\n### ✅ Tested On\r\nWindows 10 / 11, Linux (Fedora), macOS (15.6 M1)\r\n\r\nStandard Electron (>= v22)\r\n\r\n### 📜 License\r\nMIT","users":{}}