Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Cannot Drag Tables in SQL Builder using Firefox v58

Questions related to using nuBuilder Forte.
tonyd
Posts: 68
Joined: Sun Mar 04, 2018 6:38 pm

Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by tonyd »

Is there a CSS fix for this issue? Works fine with Google Chrome and Microsoft Edge.
TonyD
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by toms »

To fix that, edit nuselect.php and add an event parameter to these three handlers.

Code: Select all

        $(document).mousemove(function(event){
            nuMove(event);
        });
        $(document).mousedown(function(event){
            nuDown(event);
        });
        $(document).mouseup(function(event){
            nuUp(event);
        });
WebKit follows IE's old behavior of using a global symbol for "event", but Firefox doesn't.
Last edited by Anonymous on Sat Mar 10, 2018 6:25 pm, edited 1 time in total.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by toms »

...and patch nuselectclass.js:

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'));

	}
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by admin »

TonyD,

I have put the fix on Github.

Steven
tonyd
Posts: 68
Joined: Sun Mar 04, 2018 6:38 pm

Re: Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by tonyd »

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.
TonyD
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by admin »

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
tonyd
Posts: 68
Joined: Sun Mar 04, 2018 6:38 pm

Re: Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by tonyd »

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. :D
TonyD
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by admin »

TonyD,

Mate, get over it.

Steven
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by admin »

TonyD,

Sorry about that.

I see your problem now.

Steven
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Cannot Drag Tables in SQL Builder using Firefox v58

Unread post by admin »

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
Post Reply