Skip to content

Commit ae68a09

Browse files
committed
tidy
1 parent 53d81cf commit ae68a09

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

include/mostly_harmless/gui/mostlyharmless_WebviewBase.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@
88
#include <mostly_harmless/gui/mostlyharmless_Colour.h>
99
#include <choc/gui/choc_WebView.h>
1010
namespace mostly_harmless::gui {
11-
enum class CursorStyle {
12-
Normal,
13-
Edit,
14-
Wait,
15-
Crosshair,
16-
UpArrow,
17-
VSize,
18-
HSize,
19-
VHSize
20-
21-
};
2211
/**
2312
* \brief Tries to retrieve the MIME type for a given filename.
2413
* \param filename The filename to retrieve the MIME type for

source/gui/platform/mostlyharmless_GuiHelpersMacOS.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void setMousePos(std::uint32_t newX, std::uint32_t newY) {
8181
const auto translatedY = h - newY;
8282
const auto pt = CGPointMake(newX, translatedY);
8383
// Note that while this doesn't generate an event, its delta will be added to the next mouse event that *does* generate an event - so in effect, this can cause a massive fucking jump -
84-
// not sure what to do about this at the moment..
84+
// If you can intercept the next event, this is workaroundable - see WebviewEditor's ouroboros stuff
8585
CGWarpMouseCursorPosition(pt);
8686
CGAssociateMouseAndMouseCursorPosition(true);
8787
}

0 commit comments

Comments
 (0)