Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[[ Bug 21532 ]] Move dragboard rebind to mousedown - #6662

Merged
montegoulding merged 1 commit into
livecode:release-9.0.1from
montegoulding:bugfix-21532
Aug 29, 2018
Merged

[[ Bug 21532 ]] Move dragboard rebind to mousedown#6662
montegoulding merged 1 commit into
livecode:release-9.0.1from
montegoulding:bugfix-21532

Conversation

@montegoulding

Copy link
Copy Markdown
Contributor

This patch moves the rebinding of the dragboard at the start of a drag
to mouseDown as mouseDown is documented as a handler that can set the
dragData.

@montegoulding montegoulding added this to the 9.0.1-rc-3 milestone Aug 29, 2018
Comment thread engine/src/desktop.cpp Outdated
{
if (((MCScreenDC *)MCscreen) -> isbackdrop(p_window))
// ensure the dragboard is bound correctly
MCAutoRefcounted<MCRawClipboard> t_dragboard(MCRawClipboard::CreateSystemDragboard());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this should be further down... Around line 394 - I think that's where the 'reset for potential drag' happens...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed - perhaps instead of MCdragboard->Clear()?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hehe.. tbh I didn't look that much at the rest of MCPlatformHandleMouseDown once I moved it there and things worked. Yes it should replace that of course!

This patch moves the rebinding of the dragboard at the start of a drag
to mouseDown as mouseDown is documented as a handler that can set the
dragData.
@runrevmark

Copy link
Copy Markdown
Contributor

@livecode-vulcan review ok 8d560ea

@livecode-vulcan

Copy link
Copy Markdown
Contributor

💙 review by @runrevmark ok 8d560ea

livecode-vulcan added a commit that referenced this pull request Aug 29, 2018
[[ Bug 21532 ]] Move dragboard rebind to mousedown

This patch moves the rebinding of the dragboard at the start of a drag
to mouseDown as mouseDown is documented as a handler that can set the
dragData.
@livecode-vulcan

Copy link
Copy Markdown
Contributor

😎 test success 8d560ea

  • try-community-armv6-android-sdk26_ndk16r15: success
  • try-community-armv7-android-sdk26_ndk16r15: success
  • try-community-arm64-android-sdk26_ndk16r15: success
  • try-community-x86-android-sdk26_ndk16r15: success
  • try-community-x86_64-android-sdk26_ndk16r15: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos11.4: success
  • try-community-universal-ios-iphonesimulator11.4: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: success
  • try-community-x86_64-win32: success

@montegoulding
montegoulding merged commit 21ef69c into livecode:release-9.0.1 Aug 29, 2018
@montegoulding
montegoulding deleted the bugfix-21532 branch August 29, 2018 23:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants