Jump to content

Drag Issue over TUniDBHTMLMemo


GerhardV

Recommended Posts

@Farshad, see the attached video demonstrating the issue when dragging a panel over a TUniDBHTMLMemo. Dragging it over the other containers like panels seems to display fine but the moment the mouse enters a TUniDBHTMLMemo then the display stops to update until the mouse exists the TUniDBHTMLMemo. Is this possible to fix?

PanelDragIssue.zip

Link to comment
Share on other sites

  • 2 weeks later...
On 3/14/2019 at 11:07 PM, GerhardV said:

Chrome, Opera, Edge and FireFox....all same effect.

Is the question still relevant?
I forgot to attach the solution

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniPanel1.JSInterface.JSAddListener('boxready', 'function(me){if (me.dd) {me.dd.startDrag = function(){'+
    UniDBHTMLMemo1.JSName +'.bodyEl.setStyle("pointer-events", "none")}}}'
  );
end;

procedure TMainForm.UniPanel1EndDrag(Sender: TUniControl; Left, Top: Integer);
begin
  UniDBHTMLMemo1.JSInterface.JSCode(#1'.bodyEl.setStyle("pointer-events", "auto");');
end;

 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...