fabiobiondi / angular-fullscreen

AngularJS HTML5 Fullscreen
214 stars 107 forks source link

Make clicking for fullscreen an option that can be turned off #16

Closed seanhoughton closed 10 years ago

seanhoughton commented 10 years ago

I'd like to include some UI elements inside of the fullscreen section of the page - but the click handler installed by the 'fullscreen' directive is interfering. I would actually suggest removing it alltogether so users can pick the behavior they want.

Here's the code in question

$element.on('click', function (ev) {
                  Fullscreen.enable(  $element[0] );
               });
fabiobiondi commented 10 years ago

I have merged right now this pull request that may solve your issue. https://github.com/fabiobiondi/angular-fullscreen/pull/10

Now you can disable the default "click" behavior using the only-watched-property attribute.

Lorem ipsum...

Does it fix your problem? Or can you give me more details?