1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Android: by default, embed AndroidViewComponent’s native views as children rather than siblings of an underlying peer.

This commit is contained in:
Lukasz Kozakiewicz 2018-04-23 19:15:29 +02:00
parent 3a373cfa06
commit 4597aa09c9
3 changed files with 43 additions and 10 deletions

View file

@ -46,8 +46,12 @@ class JUCE_API AndroidViewComponent : public Component
{
public:
//==============================================================================
/** Create an initially-empty container. */
AndroidViewComponent();
/** Create an initially-empty container. The optional flag should be left as
false in most of the cases. Currently it is only set to true as a workaround
for a web browser bug, where scrolling would be very slow and it would
randomly scroll in an opposite direction of scrolling.
*/
AndroidViewComponent (bool embedAsSiblingRatherThanChild = false);
/** Destructor. */
~AndroidViewComponent();
@ -73,6 +77,8 @@ private:
class Pimpl;
std::unique_ptr<Pimpl> pimpl;
bool embedAsSiblingRatherThanChild;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidViewComponent)
};