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

FTS 's issues MEGA THREAD #29

Open
FutureLearnSole opened this issue Jul 28, 2020 · 1 comment
Open

FTS 's issues MEGA THREAD #29

FutureLearnSole opened this issue Jul 28, 2020 · 1 comment

Comments

@FutureLearnSole
Copy link

to somehow persist ele border draw on dragenter

webpack://Mashlib/node_modules/solid-ui/lib/widgets/dragAndDrop.js

`var dragenterListener = function dragenterListener(e) {
debug.log('dragenter event dropEffect: ' + e.dataTransfer.dropEffect);

if (this.style) {
  //  necessary not sure when
  if (!this.savedStyle) {
    this.savedStyle = {};
    this.savedStyle.border = this.style.border;
    this.savedStyle.backgroundColor = this.style.backgroundColor;
    this.savedStyle.borderRadius = this.style.borderRadius;
  }

  this.style.backgroundColor = '#ccc';
  this.style.border = '0.25em dashed black';
  this.style.borderRadius = '0.3em';
}

e.dataTransfer.dropEffect = 'link';
debug.log('dragenter event dropEffect 2: ' + e.dataTransfer.dropEffect);

};

var dragleaveListener = function dragleaveListener(e) {
debug.log('dragleave event dropEffect: ' + e.dataTransfer.dropEffect);

if (this.savedStyle) {
  this.style.border = this.savedStyle.border;
  this.style.backgroundColor = this.savedStyle.backgroundColor;
  this.style.borderRadius = this.savedStyle.borderRadius;
} else {
  this.style.backgroundColor = 'white';
  this.style.border = '0em solid black';
}

};`

@FutureLearnSole
Copy link
Author

useful ![Éó—§úE button replicate on the other view pane (NOT 'Table View' view pane)

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

1 participant