Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Cannot Drag Tables in SQL Builder using Firefox v58
-
- Posts: 68
- Joined: Sun Mar 04, 2018 6:38 pm
Cannot Drag Tables in SQL Builder using Firefox v58
Is there a CSS fix for this issue? Works fine with Google Chrome and Microsoft Edge.
TonyD
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Cannot Drag Tables in SQL Builder using Firefox v58
To fix that, edit nuselect.php and add an event parameter to these three handlers.
WebKit follows IE's old behavior of using a global symbol for "event", but Firefox doesn't.
Code: Select all
$(document).mousemove(function(event){
nuMove(event);
});
$(document).mousedown(function(event){
nuDown(event);
});
$(document).mouseup(function(event){
nuUp(event);
});
Last edited by Anonymous on Sat Mar 10, 2018 6:25 pm, edited 1 time in total.
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Cannot Drag Tables in SQL Builder using Firefox v58
...and patch nuselectclass.js:
Replace event with e
Replace event with e
Code: Select all
function nuUp(e){
var el = $(e.target);
if(el.hasClass('nuTableName')){
window.nuY = parseInt($(e.target).parent().css('top'));
window.nuX = parseInt($(e.target).parent().css('left'));
}
-
- Posts: 68
- Joined: Sun Mar 04, 2018 6:38 pm
Re: Cannot Drag Tables in SQL Builder using Firefox v58
Works great, Steven . . . however . . . now the doubleclick on the join lines(to change the join type) does not work in any browser.
Also, the Resize slider does not work in Firefox.
Also, the Resize slider does not work in Firefox.
TonyD
Re: Cannot Drag Tables in SQL Builder using Firefox v58
TonyD,
I have fixed those things now - I believe.
You'll need the latest from Github and you'll need to run Update.
Let me know if it works for you.
Steven
I have fixed those things now - I believe.
You'll need the latest from Github and you'll need to run Update.
Let me know if it works for you.
Steven
-
- Posts: 68
- Joined: Sun Mar 04, 2018 6:38 pm
Re: Cannot Drag Tables in SQL Builder using Firefox v58
Everything looks like it is working the same for all browsers now. There remains a couple of idiosyncrasies, like the join lines do not redraw correctly when you "Resize" the SQL Builder. Also, resizing seems to center on the frame, which can leave a large gap between the first table and the left side. Both of these I can definitely live with. 

TonyD
Re: Cannot Drag Tables in SQL Builder using Firefox v58
TonyD,
Sorry about that.
I see your problem now.
Steven
Sorry about that.
I see your problem now.
Steven
Re: Cannot Drag Tables in SQL Builder using Firefox v58
TonyD,
I have had to reverse those changes - because of the problems you mentioned.
Sorry about that.
You will need the latest from Github and you'll need to run Update.
You might have to steer away from Firefox for the time being.
Steven
I have had to reverse those changes - because of the problems you mentioned.
Sorry about that.
You will need the latest from Github and you'll need to run Update.
You might have to steer away from Firefox for the time being.
Steven