Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

electron-drag breaks when using 'affinity' #10

Closed
ChazDazzle opened this issue Jul 8, 2018 · 4 comments
Closed

electron-drag breaks when using 'affinity' #10

ChazDazzle opened this issue Jul 8, 2018 · 4 comments

Comments

@ChazDazzle
Copy link

ChazDazzle commented Jul 8, 2018

There's a new option in Electron 2.0 called 'affinity' which allows multiple windows to be run in the same render process. Using electron-drag with affinity works for the first window in the group, but the win-mouse tryRequire throws an error on all subsequent windows:

C:\Users\Chaz\Documents\pokeit-hud-x64\node_modules\bindings\bindings.js:88 Uncaught Error: Module did not self-register.
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)
    at Object.Module._extensions..node (module.js:671:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at bindings (C:\Users\Chaz\Documents\pokeit-hud-x64\node_modules\bindings\bindings.js:81:44)
    at Object.<anonymous> (C:\Users\Chaz\Documents\pokeit-hud-x64\node_modules\win-mouse\index.js:3:13)
@ChazDazzle
Copy link
Author

See: nodejs/node#19731 (comment)

@ChazDazzle
Copy link
Author

Using the well known symbol approach to define the add-on appears to work: nodejs/node@3828fc6

@wuwei2150
Copy link

@ChazDazzle Has the problem been solved?

@kapetan
Copy link
Owner

kapetan commented Sep 9, 2020

I'm not planning on fixing this, affinity seems to be going away. Version 2.0.0 is now context-aware at least.

@kapetan kapetan closed this as completed Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants